aboutsummaryrefslogtreecommitdiffstats
path: root/unmime.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2004-06-19 01:44:56 +0000
committerMatthias Andree <matthias.andree@gmx.de>2004-06-19 01:44:56 +0000
commit67d5e1e4ca79d86c8beedc8709efb27f83295443 (patch)
treeb8692dc1d527a427787e86e6e1f02f14a5203630 /unmime.c
parentad03539e8bf64c9e3393f357857c5c751d682abc (diff)
downloadfetchmail-67d5e1e4ca79d86c8beedc8709efb27f83295443.tar.gz
fetchmail-67d5e1e4ca79d86c8beedc8709efb27f83295443.tar.bz2
fetchmail-67d5e1e4ca79d86c8beedc8709efb27f83295443.zip
Cast arguments of is*() ctype.h functions to unsigned char to be 8-bit safe.
svn path=/trunk/; revision=3903
Diffstat (limited to 'unmime.c')
-rw-r--r--unmime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unmime.c b/unmime.c
index 65f654a8..ad402aa8 100644
--- a/unmime.c
+++ b/unmime.c
@@ -291,7 +291,7 @@ static char *GetBoundary(char *CntType)
do {
p2 = strchr(p1, ';');
if (p2)
- for (p2++; isspace(*p2); p2++);
+ for (p2++; isspace((unsigned char)*p2); p2++);
p1 = p2;
} while ((p1) && (strncasecmp(p1, "boundary", 8) != 0));
@@ -301,7 +301,7 @@ static char *GetBoundary(char *CntType)
return NULL;
/* Skip "boundary", whitespace and '='; check that we do have a '=' */
- for (p1+=8, flag=0; (isspace(*p1) || (*p1 == '=')); p1++)
+ for (p1+=8, flag=0; (isspace((unsigned char)*p1) || (*p1 == '=')); p1++)
flag |= (*p1 == '=');
if (!flag)
return NULL;
@@ -349,7 +349,7 @@ static int CheckContentType(char *CntType)
if (CntType == NULL) return 0;
/* Skip whitespace, if any */
- for (; isspace(*p); p++) ;
+ for (; isspace((unsigned char)*p); p++) ;
for (i=0;
(DecodedTypes[i] &&