You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by da...@apache.org on 2021/02/24 13:21:48 UTC
[incubator-nuttx] branch master updated: builtin: execute app whose
filename is longer than NAME_MAX
This is an automated email from the ASF dual-hosted git repository.
davids5 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 142406b builtin: execute app whose filename is longer than NAME_MAX
142406b is described below
commit 142406bd2a20a90e74f8ee27da60f3dfc03447f5
Author: Jiuzhu Dong <do...@xiaomi.com>
AuthorDate: Thu Feb 4 15:58:27 2021 +0800
builtin: execute app whose filename is longer than NAME_MAX
Change-Id: I0d8ed47c0391e65467cc8a2f4f499b0fbfa8c122
Signed-off-by: Jiuzhu Dong <do...@xiaomi.com>
---
libs/libc/builtin/lib_builtin_isavail.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/libc/builtin/lib_builtin_isavail.c b/libs/libc/builtin/lib_builtin_isavail.c
index d5b8f56..a5efcc3 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;
}