mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Revert "Revert "nshlib: fix possible out of bounds array access""
This reverts commit fe4b44e3ff.
This commit is contained in:
parent
7bf9025f28
commit
ec1c5f9273
1 changed files with 0 additions and 1 deletions
|
|
@ -513,7 +513,6 @@ FAR char *nsh_getdirpath(FAR struct nsh_vtbl_s *vtbl,
|
|||
snprintf(vtbl->iobuffer, IOBUFFERSIZE, "%s/%s", dirpath, path);
|
||||
}
|
||||
|
||||
vtbl->iobuffer[PATH_MAX] = '\0';
|
||||
return strdup(vtbl->iobuffer);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue