builtin: execute app whose filename is longer than NAME_MAX
Change-Id: I0d8ed47c0391e65467cc8a2f4f499b0fbfa8c122 Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
ee8cea1f4b
commit
142406bd2a
|
@ -82,7 +82,7 @@ int builtin_isavail(FAR const char *appname)
|
|||
|
||||
for (i = 0; (name = builtin_getname(i)) != NULL; i++)
|
||||
{
|
||||
if (strncmp(name, appname, NAME_MAX) == 0)
|
||||
if (strcmp(name, appname) == 0)
|
||||
{
|
||||
return i;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue