diff --git a/rosapps/cmd/internal.c b/rosapps/cmd/internal.c index b5994789701..fd3629ee1a3 100644 --- a/rosapps/cmd/internal.c +++ b/rosapps/cmd/internal.c @@ -187,7 +187,7 @@ INT cmd_chdir (LPTSTR cmd, LPTSTR param) dir=param; endofstring=dir+_tcslen(dir); - while (lastquote = _tcsrchr(dir,'\"')) + while ((lastquote = _tcsrchr(dir,'\"'))) { endofstring--; memmove(lastquote,lastquote+1,endofstring-lastquote);