From 1039bf0a68a06aee9a4e4a17b7833c28c9aa318f Mon Sep 17 00:00:00 2001 From: Brandon Turner Date: Sun, 8 Jan 2006 21:17:40 +0000 Subject: [PATCH] Check to see if we are at the end of the string even if there isnt a " there. svn path=/trunk/; revision=20731 --- reactos/subsys/system/cmd/misc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reactos/subsys/system/cmd/misc.c b/reactos/subsys/system/cmd/misc.c index 8766c60b522..770d9990f83 100644 --- 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; } -- 2.17.1