[posix-app] fix missing sentinel in execl() (#4007)

This commit fixes a build error on OpenWRT.

Error: missing sentinel in function execl.
This commit is contained in:
huamenggg
2019-07-23 12:49:04 -07:00
committed by Jonathan Hui
parent bcbe8e2179
commit a307039927
+2 -1
View File
@@ -499,7 +499,8 @@ int HdlcInterface::ForkPty(const char *aCommand, const char *aArguments)
fprintf(stderr, "NCP file and configuration is too long!");
rval = -1);
VerifyOrExit((rval = execl(SOCKET_UTILS_DEFAULT_SHELL, SOCKET_UTILS_DEFAULT_SHELL, "-c", cmd, NULL)) != -1,
VerifyOrExit((rval = execl(SOCKET_UTILS_DEFAULT_SHELL, SOCKET_UTILS_DEFAULT_SHELL, "-c", cmd,
static_cast<char *>(NULL))) != -1,
perror("execl(OT_RCP)"));
}
else