projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3761ecf
)
Check to see if we are at the end of the string even if there isnt a " there.
author
Brandon Turner
<turnerb7@msu.edu>
Sun, 8 Jan 2006 21:17:40 +0000
(21:17 +0000)
committer
Brandon 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
patch
|
blob
|
history
diff --git
a/reactos/subsys/system/cmd/misc.c
b/reactos/subsys/system/cmd/misc.c
index
8766c60
..
770d999
100644
(file)
--- a/
reactos/subsys/system/cmd/misc.c
+++ b/
reactos/subsys/system/cmd/misc.c
@@
-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;
}