apps/nshlib: replace CONFIG_NSH_LINELEN to LINE_MAX

LINE_MAX: https://github.com/apache/nuttx/pull/15344

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
wangjianyu3
2025-01-14 10:55:27 +08:00
committed by Xiang Xiao
parent 66231194be
commit 26173597a9
9 changed files with 17 additions and 24 deletions

View File

@@ -163,7 +163,7 @@ int nsh_script(FAR struct nsh_vtbl_s *vtbl, FAR const FAR char *cmd,
/* Now read the next line from the script file */
ret = readline_fd(buffer, CONFIG_NSH_LINELEN, vtbl->np.np_fd, -1);
ret = readline_fd(buffer, LINE_MAX, vtbl->np.np_fd, -1);
if (ret >= 0)
{
/* Parse process the command. NOTE: this is recursive...