Fix previous change to strtok_quote

This commit is contained in:
Hallvard Furuseth 1999-02-23 15:48:47 +00:00
parent 6b40ed4882
commit 1d8ae81a06
2 changed files with 4 additions and 6 deletions

View File

@ -603,11 +603,10 @@ strtok_quote( char *line, char *sep )
break;
case '\\':
if ( next[1] ) {
if ( next[1] )
SAFEMEMCPY( next,
next + 1, strlen( next + 1 ) + 1 );
next++; /* dont parse the escaped character */
}
next++; /* dont parse the escaped character */
break;
default:

View File

@ -177,10 +177,9 @@ strtok_quote(
break;
case '\\':
if ( next[1] ) {
if ( next[1] )
SAFEMEMCPY( next, next + 1, strlen( next + 1 ) + 1 );
next++; /* dont parse the escaped character */
}
next++; /* dont parse the escaped character */
break;
default: