diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-09-25 10:34:35 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-09-25 10:34:35 +0000 |
commit | 9084f49286547cdd9043015b8c2088c1c7dc27bd (patch) | |
tree | 3cc9e92b74565df8fe3d60ea7628edca69639cf4 /imap.c | |
parent | 39b9add3ccc3aabad2382b06d4fbdbae41f53e63 (diff) | |
download | fetchmail-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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")) ; |