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

@@ -664,7 +664,7 @@ int ReadClause(Translator *tr, char *buf, short *charix, int *charix_top, int n_
if (c2 != '1') {
// a list of punctuation characters to be spoken, terminated by space
j = 0;
while (!Eof() && !iswspace(c2)) {
while (!Eof() && !iswspace(c2) && (j < N_PUNCTLIST-1)) {
option_punctlist[j++] = c2;
c2 = GetC();
buf[ix++] = ' ';

Loading…
Cancel
Save