From: Julio Sánchez Fernández Date: Wed, 9 Jun 1999 11:51:31 +0000 (+0000) Subject: Fixed inconsistent management of white space that was producing parsing X-Git-Tag: OPENLDAP_REL_ENG_2_BP~358 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=92839e817fadff88fc89c76f9c2c02022984cd34;p=openldap Fixed inconsistent management of white space that was producing parsing problems in slapd. --- diff --git a/libraries/libldap/schema.c b/libraries/libldap/schema.c index ce34a4e7d5..4ae2d184a2 100644 --- a/libraries/libldap/schema.c +++ b/libraries/libldap/schema.c @@ -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;