From 61edb97bdfabf1ab313fbec5f47f5e6c8a79da1a Mon Sep 17 00:00:00 2001 From: Love Hörnquist Åstrand Date: Tue, 12 Jul 2005 22:22:59 +0000 Subject: r8394: Make sure the argument to ctype is*(3) macros are unsigned char as required by ISO C99. (This used to be commit 56fd21c806e816cf4c3d23881f26474f858b45e2) --- source4/lib/genrand.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4/lib/genrand.c') diff --git a/source4/lib/genrand.c b/source4/lib/genrand.c index 9d40e72afc..ca79116b6a 100644 --- a/source4/lib/genrand.c +++ b/source4/lib/genrand.c @@ -261,11 +261,11 @@ BOOL check_password_quality(const char *s) { int has_digit=0, has_capital=0, has_lower=0; while (*s) { - if (isdigit(*s)) { + if (isdigit((unsigned char)*s)) { has_digit++; - } else if (isupper(*s)) { + } else if (isupper((unsigned char)*s)) { has_capital++; - } else if (islower(*s)) { + } else if (islower((unsigned char)*s)) { has_lower++; } s++; -- cgit