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 /socket.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 'socket.c')
-rw-r--r-- | socket.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -90,7 +90,7 @@ static char *const *parse_plugin(const char *plugin, const char *host, const cha unsigned int service_len = strlen(service); for (c = p = plugin; *c; c++) - { if (isspace(*c) && !isspace(*p)) + { if (isspace((unsigned char)*c) && !isspace((unsigned char)*p)) s += sizeof(char*); if (*p == '%' && *c == 'h') host_count++; @@ -134,14 +134,14 @@ static char *const *parse_plugin(const char *plugin, const char *host, const cha } memset(argvec, 0, s); for (c = p = plugin_copy, i = 0; *c; c++) - { if ((!isspace(*c)) && (c == p ? 1 : isspace(*p))) { + { if ((!isspace((unsigned char)*c)) && (c == p ? 1 : isspace((unsigned char)*p))) { argvec[i] = c; i++; } p = c; } for (cp = plugin_copy; *cp; cp++) - { if (isspace(*cp)) + { if (isspace((unsigned char)*cp)) *cp = 0; } return (char *const*)argvec; |