From 4a5550c8225d762f684d4047e20cc45274b6a785 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 7 Jun 2000 05:43:37 +0000 Subject: * Lots of bug fixes and cleanup; new i18n files, etc. --- vpath.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'vpath.c') diff --git a/vpath.c b/vpath.c index 3401327..2288f9a 100644 --- a/vpath.c +++ b/vpath.c @@ -222,7 +222,7 @@ construct_vpath_list (pattern, dirpath) maxelem = 2; p = dirpath; while (*p != '\0') - if (*p++ == PATH_SEPARATOR_CHAR || isblank (*p)) + if (*p++ == PATH_SEPARATOR_CHAR || isblank ((unsigned char)*p)) ++maxelem; vpath = (char **) xmalloc (maxelem * sizeof (char *)); @@ -230,7 +230,7 @@ construct_vpath_list (pattern, dirpath) /* Skip over any initial separators and blanks. */ p = dirpath; - while (*p == PATH_SEPARATOR_CHAR || isblank (*p)) + while (*p == PATH_SEPARATOR_CHAR || isblank ((unsigned char)*p)) ++p; elem = 0; @@ -241,7 +241,8 @@ construct_vpath_list (pattern, dirpath) /* Find the end of this entry. */ v = p; - while (*p != '\0' && *p != PATH_SEPARATOR_CHAR && !isblank (*p)) + while (*p != '\0' && *p != PATH_SEPARATOR_CHAR + && !isblank ((unsigned char)*p)) ++p; len = p - v; @@ -274,7 +275,7 @@ construct_vpath_list (pattern, dirpath) } /* Skip over separators and blanks between entries. */ - while (*p == PATH_SEPARATOR_CHAR || isblank (*p)) + while (*p == PATH_SEPARATOR_CHAR || isblank ((unsigned char)*p)) ++p; } -- cgit v1.2.3