Check to see if we are at the end of the string even if there isnt a " there.
Modified: trunk/reactos/subsys/system/cmd/misc.c
--- trunk/reactos/subsys/system/cmd/misc.c 2006-01-08 21:09:00 UTC (rev 20730) +++ trunk/reactos/subsys/system/cmd/misc.c 2006-01-08 21:17:40 UTC (rev 20731) @@ -370,6 +370,12 @@
/* adjust string pointer if quoted (") */ if (bQuoted) {
+ /* Check to make sure if there is no ending " + * we dont run over the null char */ + if(*s != _T('/')) + { + break; + }
++s; bQuoted = FALSE; }