Check to see if we are at the end of the string even if there isnt a " there.
authorBrandon Turner <turnerb7@msu.edu>
Sun, 8 Jan 2006 21:17:40 +0000 (21:17 +0000)
committerBrandon Turner <turnerb7@msu.edu>
Sun, 8 Jan 2006 21:17:40 +0000 (21:17 +0000)
svn path=/trunk/; revision=20731

reactos/subsys/system/cmd/misc.c

index 8766c60..770d999 100644 (file)
@@ -370,6 +370,12 @@ LPTSTR *split (LPTSTR s, LPINT args, BOOL expand_wildcards)
                /* 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;
                }