diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2004-06-19 01:44:56 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2004-06-19 01:44:56 +0000 |
commit | 67d5e1e4ca79d86c8beedc8709efb27f83295443 (patch) | |
tree | b8692dc1d527a427787e86e6e1f02f14a5203630 /unmime.c | |
parent | ad03539e8bf64c9e3393f357857c5c751d682abc (diff) | |
download | fetchmail-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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] && |