changeset 15162:9c7c363837c9

when parsing one cmd argument, only un-escape _this_ argument, not the following ones
author aurel
date Fri, 15 Apr 2005 14:52:33 +0000
parents eb7823afb1f6
children 54c257370678
files input/input.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/input/input.c	Fri Apr 15 12:14:24 2005 +0000
+++ b/input/input.c	Fri Apr 15 14:52:33 2005 +0000
@@ -628,7 +628,7 @@
       } else if(!e) e = ptr+strlen(ptr);
       l = e-start;
       ptr2 = start;
-       for(e = strchr(ptr2,'\\') ; e ; e = strchr(ptr2,'\\')) {
+      for(e = strchr(ptr2,'\\') ; e && e<start+l ; e = strchr(ptr2,'\\')) {
 	memmove(e,e+1,strlen(e));
 	ptr2 = e + 1;
         l--;