aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c4
1 files changed, 2 insertions, 2 deletions
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"))
;