From 61d71d95b98775fa670565ffc80ac5ca970c60cf Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 24 Apr 2006 20:32:23 +0000 Subject: [PATCH] Cast isspace() arg to unsigned char. (Update to previous change.) --- servers/slapd/result.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.39.5