summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtchang%redhat.com <devnull@localhost>2005-08-05 22:44:06 +0000
committerwtchang%redhat.com <devnull@localhost>2005-08-05 22:44:06 +0000
commit5d189eb3b402184eb67f84750f7c6bb0188f0b8c (patch)
treeac629809a1fd3d58001ee20937589b333d6999bf
parent5546e2755ba77acd40b3dc126e343b1726fa0fc5 (diff)
downloadnspr-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.
-rw-r--r--pr/src/io/prscanf.c2
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;
}
}