]> git.sur5r.net Git - openldap/commitdiff
Fixed inconsistent management of white space that was producing parsing
authorJulio Sánchez Fernández <jsanchez@openldap.org>
Wed, 9 Jun 1999 11:51:31 +0000 (11:51 +0000)
committerJulio Sánchez Fernández <jsanchez@openldap.org>
Wed, 9 Jun 1999 11:51:31 +0000 (11:51 +0000)
problems in slapd.

libraries/libldap/schema.c

index ce34a4e7d586c9d04d436b4b8e9ba9a0bde128ec..4ae2d184a2a3492a3ba054d54f83a10ae5e47681 100644 (file)
@@ -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;