diff options
author | wtchang%redhat.com <devnull@localhost> | 2005-08-05 22:44:06 +0000 |
---|---|---|
committer | wtchang%redhat.com <devnull@localhost> | 2005-08-05 22:44:06 +0000 |
commit | 5d189eb3b402184eb67f84750f7c6bb0188f0b8c (patch) | |
tree | ac629809a1fd3d58001ee20937589b333d6999bf /pr/src/io | |
parent | 5546e2755ba77acd40b3dc126e343b1726fa0fc5 (diff) | |
download | nspr-hg-5d189eb3b402184eb67f84750f7c6bb0188f0b8c.tar.gz |
Bugzilla Bug 298612: ensure that the return value of StringGetChar, which
is passed to isspace, etc., is EOF or between 0 and 255. r=darin.
Diffstat (limited to 'pr/src/io')
-rw-r--r-- | pr/src/io/prscanf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pr/src/io/prscanf.c b/pr/src/io/prscanf.c index 6fad0f70..618f184f 100644 --- a/pr/src/io/prscanf.c +++ b/pr/src/io/prscanf.c @@ -639,7 +639,7 @@ StringGetChar(void *stream) return EOF; } else { *((char **) stream) = cPtr + 1; - return *cPtr; + return (unsigned char) *cPtr; } } |