aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-09-25 10:34:35 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-09-25 10:34:35 +0000
commit9084f49286547cdd9043015b8c2088c1c7dc27bd (patch)
tree3cc9e92b74565df8fe3d60ea7628edca69639cf4 /imap.c
parent39b9add3ccc3aabad2382b06d4fbdbae41f53e63 (diff)
downloadfetchmail-9084f49286547cdd9043015b8c2088c1c7dc27bd.tar.gz
fetchmail-9084f49286547cdd9043015b8c2088c1c7dc27bd.tar.bz2
fetchmail-9084f49286547cdd9043015b8c2088c1c7dc27bd.zip
Properly cast arguments of ctype is*()/to*() functions to unsigned char.
svn path=/trunk/; revision=4324
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"))
;