Cast isspace() arg to unsigned char. (Update to previous change.)

This commit is contained in:
Hallvard Furuseth 2006-04-24 20:32:23 +00:00
parent a42367ae3a
commit 61d71d95b9

View file

@ -1476,7 +1476,7 @@ str2result(
continue; continue;
} }
while ( isspace( c[ 0 ] ) ) c++; while ( isspace( (unsigned char) c[ 0 ] ) ) c++;
if ( c[ 0 ] == '\0' ) { if ( c[ 0 ] == '\0' ) {
Debug( LDAP_DEBUG_ANY, "str2result (%s) missing or empty value\n", Debug( LDAP_DEBUG_ANY, "str2result (%s) missing or empty value\n",
s, 0, 0 ); s, 0, 0 );
@ -1492,7 +1492,7 @@ str2result(
continue; continue;
} }
while ( isspace( next[ 0 ] ) ) next++; while ( isspace( (unsigned char) next[ 0 ] ) ) next++;
if ( next[ 0 ] != '\0' ) { if ( next[ 0 ] != '\0' ) {
Debug( LDAP_DEBUG_ANY, "str2result (%s) extra cruft after value\n", Debug( LDAP_DEBUG_ANY, "str2result (%s) extra cruft after value\n",
s, 0, 0 ); s, 0, 0 );