From 9084f49286547cdd9043015b8c2088c1c7dc27bd Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 25 Sep 2005 10:34:35 +0000 Subject: Properly cast arguments of ctype is*()/to*() functions to unsigned char. svn path=/trunk/; revision=4324 --- imap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'imap.c') diff --git a/imap.c b/imap.c index 544d720e..c76decc0 100644 --- a/imap.c +++ b/imap.c @@ -272,7 +272,7 @@ static void capa_probe(int sock, struct query *ctl) /* capability checks are supposed to be caseblind */ for (cp = capabilities; *cp; cp++) - *cp = toupper(*cp); + *cp = toupper((unsigned char)*cp); /* UW-IMAP server 10.173 notifies in all caps, but RFC2060 says we should expect a response in mixed-case */ @@ -846,7 +846,7 @@ static int imap_getpartialsizes(int sock, int first, int last, int *sizes) return(ok); /* we want response matching to be case-insensitive */ for (cp = buf; *cp; cp++) - *cp = toupper(*cp); + *cp = toupper((unsigned char)*cp); /* an untagged NO means that a message was not readable */ if (strstr(buf, "* NO")) ; -- cgit v1.2.3