From 891e470c6d66bb5e27adedfcce364211f043a448 Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Sun, 18 Sep 2005 18:37:08 +0000 Subject: [PATCH] fix escaping svn path=/trunk/; revision=17917 --- reactos/subsys/system/cmd/set.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/system/cmd/set.c b/reactos/subsys/system/cmd/set.c index c55f147b109..873fd7f4670 100644 --- a/reactos/subsys/system/cmd/set.c +++ b/reactos/subsys/system/cmd/set.c @@ -69,9 +69,10 @@ INT cmd_set (LPTSTR cmd, LPTSTR param) /* remove escapes */ if ( param[0] ) for ( i = 0; param[i+1]; i++ ) { - if ( param[i] == '^' && strchr("<|>",param[i+1]) ) + if ( param[i] == '^' && strchr("<|>&^",param[i+1]) ) { memmove ( ¶m[i], ¶m[i+1], _tcslen(¶m[i]) * sizeof(TCHAR) ); + ++i; } }