Skip to content

Commit

Permalink
Update src/platform/Ameba/DiagnosticDataProviderImpl.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
pankore and bzbarsky-apple authored Jun 6, 2022
1 parent f694e53 commit 3747e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/Ameba/DiagnosticDataProviderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetThreadMetrics(ThreadMetrics ** threadM

strncpy(thread->NameBuf, taskStatusArray[x].pcTaskName, kMaxThreadNameLength - 1);
thread->NameBuf[kMaxThreadNameLength] = '\0';
thread->name = CharSpan(thread->NameBuf, strlen(thread->NameBuf));
thread->name = CharSpan::fromCharString(thread->NameBuf);
thread->id = taskStatusArray[x].xTaskNumber;

thread->stackFreeMinimum = taskStatusArray[x].usStackHighWaterMark;
Expand Down

0 comments on commit 3747e37

Please sign in to comment.