diff options
author | Christopher Faylor <me@cgf.cx> | 2001-06-01 18:57:52 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-06-01 18:57:52 +0400 |
commit | bb8251474cd5eaf5950a51e6b13dc6d5098ed0aa (patch) | |
tree | ab016d5603cdbd5701f7ee93f6d73558f0419351 /winsup/cygwin/path.cc | |
parent | bc28fe9599383f9d8996c6e8ec2e564503836b71 (diff) |
* path.cc (chdir): Really make sure that isspace gets only an unsigned char.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 31388416c..21df976cd 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -2897,7 +2897,7 @@ chdir (const char *dir) whitespace to SetCurrentDirectory. This doesn't work too well with other parts of the API, though, apparently. So nuke trailing white space. */ - for (s = strchr (dir, '\0'); --s >= dir && isspace ((unsigned int) *s); ) + for (s = strchr (dir, '\0'); --s >= dir && isspace ((unsigned int) (*s & 0xff)); ) *s = '\0'; if (path.error) |