$NetBSD$ --- util.c.orig 2007-02-03 00:00:25.000000000 +0100 +++ util.c @@ -367,11 +367,11 @@ int Util_countWords(char *s, const char */ int Util_startsWith(const char *a, const char *b) { - if((!a || !b) || toupper(*a)!=toupper(*b)) return FALSE; + if((!a || !b) || toupper((int)*a)!=toupper((int)*b)) return FALSE; while(*a && *b) { - if(toupper(*a++) != toupper(*b++)) return FALSE; + if(toupper((int)*a++) != toupper((int)*b++)) return FALSE; }