]> git.sur5r.net Git - openldap/commitdiff
Cast isspace() arg to unsigned char. (Update to previous change.)
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 24 Apr 2006 20:32:23 +0000 (20:32 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 24 Apr 2006 20:32:23 +0000 (20:32 +0000)
servers/slapd/result.c

index 11e2c962f303e2bfcfd22f91cba0f4c80d676eac..bb27c760f3638cbc3cd7872e5db45e9fea6d416d 100644 (file)
@@ -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 );