diff options
author | Paul Smith <psmith@gnu.org> | 2000-06-07 05:43:37 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2000-06-07 05:43:37 +0000 |
commit | 4a5550c8225d762f684d4047e20cc45274b6a785 (patch) | |
tree | 943515aca19373ad0fe0dce0cb852c2eca7b0cab /vpath.c | |
parent | e5c40f6e5ad9d485f7caada51e2361758baa67dd (diff) | |
download | gunmake-4a5550c8225d762f684d4047e20cc45274b6a785.tar.gz |
* Lots of bug fixes and cleanup; new i18n files, etc.
Diffstat (limited to 'vpath.c')
-rw-r--r-- | vpath.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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; } |