mirror of
https://github.com/espressif/openthread.git
synced 2026-08-11 05:07:47 +00:00
[test] replace sprintf with snprintf in otPlatDiagProcess() (#8549)
It also removes stale comments in `ncp_hdlc.cp` about use of `sprintf`.
This commit is contained in:
@@ -193,9 +193,9 @@ exit:
|
||||
return error;
|
||||
}
|
||||
|
||||
OT_TOOL_WEAK void otPlatDiagProcess(otInstance *, uint8_t, char *aArgs[], char *aOutput, size_t)
|
||||
OT_TOOL_WEAK void otPlatDiagProcess(otInstance *, uint8_t, char *aArgs[], char *aOutput, size_t aOutputMaxLen)
|
||||
{
|
||||
sprintf(aOutput, "diag feature '%s' is not supported\r\n", aArgs[0]);
|
||||
snprintf(aOutput, aOutputMaxLen, "diag feature '%s' is not supported\r\n", aArgs[0]);
|
||||
}
|
||||
|
||||
OT_TOOL_WEAK void otPlatDiagModeSet(bool aMode) { sDiagMode = aMode; }
|
||||
|
||||
Reference in New Issue
Block a user