diff --git a/libs/libc/builtin/lib_builtin_isavail.c b/libs/libc/builtin/lib_builtin_isavail.c index d5b8f56152..a5efcc3579 100644 --- a/libs/libc/builtin/lib_builtin_isavail.c +++ b/libs/libc/builtin/lib_builtin_isavail.c @@ -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; }