JianyuWang0623 commented on code in PR #2943:
URL: https://github.com/apache/nuttx-apps/pull/2943#discussion_r1914345532
##########
nshlib/nsh_parse.c:
##########
@@ -607,15 +607,22 @@ static int nsh_execute(FAR struct nsh_vtbl_s *vtbl,
{
FAR char *sh_argv[4];
FAR char *sh_cmd = "sh";
- char sh_arg2[LINE_MAX];
+ char *sh_arg2;
DEBUGASSERT(strncmp(argv[0], sh_cmd, 3) != 0);
+ sh_arg2 = lib_get_tempbuffer(LINE_MAX);
+ if (!sh_arg2)
Review Comment:
All done, thank you
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]