aboutsummaryrefslogtreecommitdiffstats
path: root/netrc.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 /netrc.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 'netrc.c')
-rw-r--r--netrc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/netrc.c b/netrc.c
index a9e29741..03c6e5be 100644
--- a/netrc.c
+++ b/netrc.c
@@ -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)
{