mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 10:39:34 -05:00
Fixed inconsistent management of white space that was producing parsing
problems in slapd.
This commit is contained in:
parent
63498d1a21
commit
92839e817f
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ append_to_safe_string(safe_string * ss, char * s)
|
|||
}
|
||||
strncpy(&ss->val[ss->pos], s, l);
|
||||
ss->pos += l;
|
||||
if ( ss->pos > 0 && ss->val[ss->pos-1] == ' ' )
|
||||
if ( ss->pos > 0 && isspace(ss->val[ss->pos-1]) )
|
||||
ss->at_whsp = 1;
|
||||
else
|
||||
ss->at_whsp = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue