Update msh.c

This commit is contained in:
roamboy 2014-01-13 15:57:13 +08:00
parent 1df4c1b962
commit 1c8693c87e
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ int msh_exec(char* cmd, rt_size_t length)
while(*cmd != ' ') while(*cmd != ' ')
{ {
if (*cmd == 0) break; if (*cmd == 0) break;
cmd++; cmd++;
} }
if (*cmd == ' ') *cmd = 0; if (*cmd == ' ') *cmd = 0;
rt_kprintf("%s: command not found.\n", argv[0]); rt_kprintf("%s: command not found.\n", argv[0]);