fix bug found by Miklos

This commit is contained in:
Caolán McNamara 2012-07-12 15:29:56 +00:00
parent 5a60cb75a9
commit 943b612a4e
1 changed files with 1 additions and 1 deletions

View File

@ -951,7 +951,7 @@ int hnj_hyphen_hyph_(HyphenDict *dict, const char *word, int word_size,
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)) {