Commit 40a46b1f authored by matt@zope.com's avatar matt@zope.com

Fix vexing bug in ISO splitter -- casting a signed char to int caused the

program to overwrite a section of the global offset table!  Changing this
to unsigned char fixes the problem.
parent a0d961df
...@@ -84,7 +84,7 @@ static void initSplitterTrtabs(void) ...@@ -84,7 +84,7 @@ static void initSplitterTrtabs(void)
} }
for (i=0;i<sizeof(DIGITSETC);i++) { for (i=0;i<sizeof(DIGITSETC);i++) {
letdig[(int)DIGITSETC[i]]=1; letdig[(unsigned char)DIGITSETC[i]]=1;
} }
} }
...@@ -574,7 +574,7 @@ static char Splitter_module_documentation[] = ...@@ -574,7 +574,7 @@ static char Splitter_module_documentation[] =
"\n" "\n"
"for use in an inverted index\n" "for use in an inverted index\n"
"\n" "\n"
"$Id: ISO_8859_1_Splitter.c,v 1.10 2002/07/18 21:53:45 bwarsaw Exp $\n" "$Id: ISO_8859_1_Splitter.c,v 1.11 2002/07/22 20:32:58 matt Exp $\n"
; ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment