From 67d5e1e4ca79d86c8beedc8709efb27f83295443 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 19 Jun 2004 01:44:56 +0000 Subject: Cast arguments of is*() ctype.h functions to unsigned char to be 8-bit safe. svn path=/trunk/; revision=3903 --- netrc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'netrc.c') 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) { -- cgit v1.2.3