Browse Source

TranslateRoman: avoid overflow

master
Samuel Thibault 4 months ago
parent
commit
3a04c042e6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/numbers.c

+ 1
- 1
src/libespeak-ng/numbers.c View File

} }


word_start = word; word_start = word;
while ((c = *word++) != ' ') {
while ((c = *word++) != ' ' && c) {
if ((p2 = strchr(roman_numbers, c)) == NULL) if ((p2 = strchr(roman_numbers, c)) == NULL)
return 0; return 0;



Loading…
Cancel
Save