summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2000-10-06 04:24:53 +0000
committerwtc%netscape.com <devnull@localhost>2000-10-06 04:24:53 +0000
commitecf55fee959491a5194d71541ca7bd778fa03db6 (patch)
tree565ae303a6d6a3bf8fd2f737ed85a7b7c92c3d18
parent8c615db455de79af74925cdd3eea64920df6f870 (diff)
downloadnspr-hg-ecf55fee959491a5194d71541ca7bd778fa03db6.tar.gz
Bugzilla bug #54195: extended the 'uc' array to 256 elements because
it may be indexed by an 8-bit character. Thanks to Naoki Hotta <nhotta@netscape.com> for the fix. (NSPRPUB_CLIENT_BRANCH)
-rw-r--r--lib/libc/src/strccmp.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/libc/src/strccmp.c b/lib/libc/src/strccmp.c
index 58ba559c..7d1e620c 100644
--- a/lib/libc/src/strccmp.c
+++ b/lib/libc/src/strccmp.c
@@ -35,7 +35,23 @@ static const unsigned char uc[] =
'`', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
- 'X', 'Y', 'Z', '{', '|', '}', '~', '\177'
+ 'X', 'Y', 'Z', '{', '|', '}', '~', '\177',
+ '\200', '\201', '\202', '\203', '\204', '\205', '\206', '\207',
+ '\210', '\211', '\212', '\213', '\214', '\215', '\216', '\217',
+ '\220', '\221', '\222', '\223', '\224', '\225', '\226', '\227',
+ '\230', '\231', '\232', '\233', '\234', '\235', '\236', '\237',
+ '\240', '\241', '\242', '\243', '\244', '\245', '\246', '\247',
+ '\250', '\251', '\252', '\253', '\254', '\255', '\256', '\257',
+ '\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267',
+ '\270', '\271', '\272', '\273', '\274', '\275', '\276', '\277',
+ '\300', '\301', '\302', '\303', '\304', '\305', '\306', '\307',
+ '\310', '\311', '\312', '\313', '\314', '\315', '\316', '\317',
+ '\320', '\321', '\322', '\323', '\324', '\325', '\326', '\327',
+ '\330', '\331', '\332', '\333', '\334', '\335', '\336', '\337',
+ '\340', '\341', '\342', '\343', '\344', '\345', '\346', '\347',
+ '\350', '\351', '\352', '\353', '\354', '\355', '\356', '\357',
+ '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367',
+ '\370', '\371', '\372', '\373', '\374', '\375', '\376', '\377'
};
PR_IMPLEMENT(PRIntn)