mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-22 16:09:01 +08:00
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:
@@ -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...
|
||||
|
Reference in New Issue
Block a user