Update msh.c

fix int msh_exec(char* cmd, rt_size_t length) bug.