mirror of
https://github.com/espressif/openthread.git
synced 2026-07-10 06:10:21 +00:00
[utils] remove strnlen (#4483)
This commit is contained in:
+1
-1
@@ -3611,7 +3611,7 @@ void Interpreter::ProcessLine(char *aBuf, uint16_t aBufLength, Server &aServer)
|
||||
|
||||
mServer = &aServer;
|
||||
|
||||
VerifyOrExit(aBuf != NULL && strnlen(aBuf, aBufLength + 1) <= aBufLength);
|
||||
VerifyOrExit(aBuf != NULL && StringLength(aBuf, aBufLength + 1) <= aBufLength);
|
||||
|
||||
VerifyOrExit(Utils::CmdLineParser::ParseCmd(aBuf, argc, argv, kMaxArgs) == OT_ERROR_NONE,
|
||||
mServer->OutputFormat("Error: too many args (max %d)\r\n", kMaxArgs));
|
||||
|
||||
Reference in New Issue
Block a user