From b57bb9136af9f1bf84378f1f11f0efc55c52c628 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 25 Oct 1999 17:04:55 +0000 Subject: [PATCH] Ensure that islower is called with int. --- lib/dns/gen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dns/gen.c b/lib/dns/gen.c index bb4b8f00a4..d266a9ea97 100644 --- a/lib/dns/gen.c +++ b/lib/dns/gen.c @@ -15,14 +15,14 @@ * SOFTWARE. */ - /* $Id: gen.c,v 1.28 1999/10/08 22:57:20 tale Exp $ */ + /* $Id: gen.c,v 1.29 1999/10/25 17:04:55 marka Exp $ */ #include #include #include -#include +#include #include #include #include @@ -143,9 +143,9 @@ char * upper(char *s) { static char buf[11]; char *b = buf; - char c; + int c; - while ((c = *s++)) { + while ((c = (*s++) & 0xff)) { *b++ = islower(c) ? toupper(c) : c; }