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:
Jiuzhu Dong 2021-02-04 15:58:27 +08:00 committed by David Sidrane
parent ee8cea1f4b
commit 142406bd2a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}