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

*word_end = 'e'; *word_end = 'e';
} }
i = word_end - word; i = word_end - word;
if (i >= N_WORD_BYTES) i = N_WORD_BYTES-1;


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

Loading…
Cancel
Save