mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
limits/path: replace CONFIG_PATH_MAX to PATH_MAX to ensure consistency
replace CONFIG_PATH_MAX to PATH_MAX to ensure consistency Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
parent
9b99493e14
commit
afca1a819d
2 changed files with 5 additions and 5 deletions
|
|
@ -205,7 +205,7 @@ int exec_module(FAR struct binary_s *binp,
|
|||
#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_BUILD_KERNEL)
|
||||
FAR struct arch_addrenv_s *addrenv = &binp->addrenv->addrenv;
|
||||
FAR void *vheap;
|
||||
char name[CONFIG_PATH_MAX];
|
||||
char name[PATH_MAX];
|
||||
#endif
|
||||
FAR void *stackaddr = NULL;
|
||||
pid_t pid;
|
||||
|
|
@ -260,7 +260,7 @@ int exec_module(FAR struct binary_s *binp,
|
|||
|
||||
if (argv == NULL)
|
||||
{
|
||||
strlcpy(name, filename, CONFIG_PATH_MAX);
|
||||
strlcpy(name, filename, PATH_MAX);
|
||||
filename = name;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue