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 /netrc.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 'netrc.c')
-rw-r--r-- | netrc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -107,7 +107,7 @@ parse_netrc (file) ln++; /* Strip trailing CRLF */ - for (p = buf + strlen(buf) - 1; (p >= buf) && isspace(*p); p--) + for (p = buf + strlen(buf) - 1; (p >= buf) && isspace((unsigned char)*p); p--) *p = '\0'; /* Parse the line. */ @@ -129,7 +129,7 @@ parse_netrc (file) char *pp; /* Skip any whitespace. */ - while (*p && isspace (*p)) + while (*p && isspace ((unsigned char)*p)) p++; /* Discard end-of-line comments. */ @@ -139,7 +139,7 @@ parse_netrc (file) tok = pp = p; /* Find the end of the token. */ - while (*p && (quote_char || !isspace (*p))) + while (*p && (quote_char || !isspace ((unsigned char)*p))) { if (quote_char) { |