mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-04 12:48:20 +00:00
nshlib/nsh_fscmds:use strchr instead of strstr
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
parent
eabba4ca20
commit
7d10751037
1 changed files with 1 additions and 1 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue