mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Make strtok_quote treat the character following \ as a normal character.
This commit is contained in:
parent
b0250a119f
commit
6b40ed4882
@ -603,7 +603,11 @@ strtok_quote( char *line, char *sep )
|
||||
break;
|
||||
|
||||
case '\\':
|
||||
SAFEMEMCPY( next, next + 1, strlen( next + 1 ) + 1 );
|
||||
if ( next[1] ) {
|
||||
SAFEMEMCPY( next,
|
||||
next + 1, strlen( next + 1 ) + 1 );
|
||||
next++; /* dont parse the escaped character */
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -177,7 +177,10 @@ strtok_quote(
|
||||
break;
|
||||
|
||||
case '\\':
|
||||
SAFEMEMCPY( next, next + 1, strlen( next + 1 ) + 1 );
|
||||
if ( next[1] ) {
|
||||
SAFEMEMCPY( next, next + 1, strlen( next + 1 ) + 1 );
|
||||
next++; /* dont parse the escaped character */
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user