From: Hallvard Furuseth Date: Mon, 22 Feb 1999 19:29:42 +0000 (+0000) Subject: Cast `char' arguments to ctype.h functions to `unsigned char'. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~548 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=246e269accb31304a08dcbbba1fe23033011a2a3;p=openldap Cast `char' arguments to ctype.h functions to `unsigned char'. These functions require their arguments to be in the range of `unsigned char'. --- diff --git a/tests/progs/slapd-addel.c b/tests/progs/slapd-addel.c index e99fbf00fe..80401e331e 100644 --- a/tests/progs/slapd-addel.c +++ b/tests/progs/slapd-addel.c @@ -207,7 +207,8 @@ get_add_entry( char *filename, LDAPMod ***mods ) if ( !( value = strchr( line, ':' ))) break; *value++ = '\0'; - while ( *value && isspace( *value )) value++; + while ( *value && isspace( (unsigned char) *value )) + value++; addmodifyop( mods, LDAP_MOD_ADD, line, value, strlen( value ));