mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 19:19:35 -05:00
Make strtok_quote treat the character following \ as a normal character.
This commit is contained in:
parent
b0250a119f
commit
6b40ed4882
2 changed files with 9 additions and 2 deletions
|
|
@ -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 a new issue