From 246e269accb31304a08dcbbba1fe23033011a2a3 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 22 Feb 1999 19:29:42 +0000 Subject: [PATCH] Cast `char' arguments to ctype.h functions to `unsigned char'. These functions require their arguments to be in the range of `unsigned char'. --- tests/progs/slapd-addel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 )); -- 2.39.5