1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$NetBSD: patch-ao,v 1.3 2004/05/03 20:56:36 mrauch Exp $
--- ../i18npool/source/breakiterator/gendict.cxx.orig 2004-04-17 19:30:03.000000000 +0200
+++ ../i18npool/source/breakiterator/gendict.cxx
@@ -95,8 +95,12 @@ int SAL_CALL main(int argc, char* argv[]
fprintf(cfp, "extern \"C\" {\n");
sal_Int32 count, i, j;
- sal_Int32 lenArrayCurr = 0, lenArrayCount = 0, lenArrayLen = 0, *lenArray = NULL, charArray[0x10000];
- sal_Bool exist[0x10000];
+ sal_Int32 lenArrayCurr = 0, lenArrayCount = 0, lenArrayLen = 0, *lenArray = NULL, *charArray;
+ sal_Bool *exist;
+ charArray = (sal_Int32*) malloc(0x10000*sizeof(*charArray));
+ if (charArray == NULL) exit(1);
+ exist = (sal_Bool*) malloc(0x10000*sizeof(*exist));
+ if (exist == NULL) exit(1);
for (i = 0; i < 0x10000; i++) {
exist[i] = sal_False;
charArray[i] = 0;
|