From: Hallvard Furuseth Date: Tue, 23 Feb 1999 15:48:47 +0000 (+0000) Subject: Fix previous change to strtok_quote X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~544 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1d8ae81a0690d54ac6ccd7e70064ab30d6dcd10d;p=openldap Fix previous change to strtok_quote --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index a62d7f11b4..74560b5a46 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -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: diff --git a/servers/slurpd/config.c b/servers/slurpd/config.c index 2dc50aa357..247910bfcc 100644 --- a/servers/slurpd/config.c +++ b/servers/slurpd/config.c @@ -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: