fix escaping

svn path=/trunk/; revision=17917
This commit is contained in:
Royce Mitchell III 2005-09-18 18:37:08 +00:00
parent 9cd240b08f
commit 891e470c6d

View file

@ -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 ( &param[i], &param[i+1], _tcslen(&param[i]) * sizeof(TCHAR) );
++i;
}
}