From 92839e817fadff88fc89c76f9c2c02022984cd34 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Wed, 9 Jun 1999 11:51:31 +0000 Subject: [PATCH] Fixed inconsistent management of white space that was producing parsing problems in slapd. --- libraries/libldap/schema.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5