nshlib/nsh_fscmds:use strchr instead of strstr

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao 2022-03-16 18:33:28 +08:00 committed by Xiang Xiao
parent eabba4ca20
commit 7d10751037

View File

@ -1241,7 +1241,7 @@ int cmd_mkdir(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
for (; ; )
{
slash = strstr(slash, "/");
slash = strchr(slash, '/');
if (slash != NULL)
{
*slash = '\0';