nshlib/nsh_fscmds:use strchr instead of strstr
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
parent
eabba4ca20
commit
7d10751037
@ -1241,7 +1241,7 @@ int cmd_mkdir(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
|||||||
|
|
||||||
for (; ; )
|
for (; ; )
|
||||||
{
|
{
|
||||||
slash = strstr(slash, "/");
|
slash = strchr(slash, '/');
|
||||||
if (slash != NULL)
|
if (slash != NULL)
|
||||||
{
|
{
|
||||||
*slash = '\0';
|
*slash = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user