Browse Source

dictionary: limit word length

master
Yury Popov 1 year ago
parent
commit
b99f332c57
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/libespeak-ng/dictionary.c

+ 1
- 0
src/libespeak-ng/dictionary.c View File

@@ -2897,6 +2897,7 @@ int RemoveEnding(Translator *tr, char *word, int end_type, char *word_copy)
*word_end = 'e';
}
i = word_end - word;
if (i >= N_WORD_BYTES) i = N_WORD_BYTES-1;

if (word_copy != NULL) {
memcpy(word_copy, word, i);

Loading…
Cancel
Save