From 95a74c27a82993b4c7fa9aa3fcafeb97845ce16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 14 Apr 2003 11:26:27 +0000 Subject: [PATCH] case argument to toupper to unsigned charm, from Christian Biere via NetBSD git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12007 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/strcasecmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/roken/strcasecmp.c b/lib/roken/strcasecmp.c index cfca524b7..b2425c989 100644 --- a/lib/roken/strcasecmp.c +++ b/lib/roken/strcasecmp.c @@ -46,13 +46,13 @@ RCSID("$Id$"); int strcasecmp(const char *s1, const char *s2) { - while(toupper(*s1) == toupper(*s2)) { + while(toupper((unsigned char)*s1) == toupper((unsigned char)*s2)) { if(*s1 == '\0') return 0; s1++; s2++; } - return toupper(*s1) - toupper(*s2); + return toupper((unsigned char)*s1) - toupper((unsigned char)*s2); } #endif