Browse Source

readclause: limit embedded punctlist length

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

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

if (c2 != '1') { if (c2 != '1') {
// a list of punctuation characters to be spoken, terminated by space // a list of punctuation characters to be spoken, terminated by space
j = 0; j = 0;
while (!Eof() && !iswspace(c2)) { while (!Eof() && !iswspace(c2) && (j < N_PUNCTLIST-1)) {
option_punctlist[j++] = c2; option_punctlist[j++] = c2;
c2 = GetC(); c2 = GetC();
buf[ix++] = ' '; buf[ix++] = ' ';

Loading…
Cancel
Save