From: Hallvard Furuseth Date: Mon, 24 Apr 2006 20:32:23 +0000 (+0000) Subject: Cast isspace() arg to unsigned char. (Update to previous change.) X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~155 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=61d71d95b98775fa670565ffc80ac5ca970c60cf;p=openldap Cast isspace() arg to unsigned char. (Update to previous change.) --- 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 );