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; }