mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
Fix previous change to strtok_quote
This commit is contained in:
parent
6b40ed4882
commit
1d8ae81a06
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user