X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fresult.c;h=bb27c760f3638cbc3cd7872e5db45e9fea6d416d;hb=d1824b14ae78b128fb9ff6cf73d2ec4a0e756a90;hp=11e2c962f303e2bfcfd22f91cba0f4c80d676eac;hpb=19c5f261e5572b23d11be7e42d2fd0fae08f87a7;p=openldap diff --git a/servers/slapd/result.c b/servers/slapd/result.c index 11e2c962f3..bb27c760f3 100644 --- a/servers/slapd/result.c +++ b/servers/slapd/result.c @@ -1476,7 +1476,7 @@ str2result( continue; } - while ( isspace( c[ 0 ] ) ) c++; + while ( isspace( (unsigned char) c[ 0 ] ) ) c++; if ( c[ 0 ] == '\0' ) { Debug( LDAP_DEBUG_ANY, "str2result (%s) missing or empty value\n", s, 0, 0 ); @@ -1492,7 +1492,7 @@ str2result( continue; } - while ( isspace( next[ 0 ] ) ) next++; + while ( isspace( (unsigned char) next[ 0 ] ) ) next++; if ( next[ 0 ] != '\0' ) { Debug( LDAP_DEBUG_ANY, "str2result (%s) extra cruft after value\n", s, 0, 0 );