forked from amazingfate/loongoffice
Change-Id: I5a112b6f588a704e682e7b50d5399d3da77fbacf Reviewed-on: https://gerrit.libreoffice.org/6308 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
12 lines
547 B
Diff
12 lines
547 B
Diff
--- misc/hyphen-2.8.4/hyphen.c 29 Jun 2012 10:02:24 -0000 1.6
|
|
+++ misc/build/hyphen-2.8.4/hyphen.c 12 Jul 2012 15:19:16 -0000
|
|
@@ -951,7 +951,7 @@
|
|
rep2 = hnj_malloc (word_size * sizeof(char *));
|
|
pos2 = hnj_malloc (word_size * sizeof(int));
|
|
cut2 = hnj_malloc (word_size * sizeof(int));
|
|
- hyphens2 = hnj_malloc (word_size);
|
|
+ hyphens2 = hnj_malloc (word_size + 3);
|
|
for (i = 0; i < word_size; i++) rep2[i] = NULL;
|
|
for (i = 0; i < word_size; i++) if
|
|
(hyphens[i]&1 || (begin > 0 && i + 1 == word_size)) {
|