Browse Source

Don't set final_ph2 to before phonetic in the stack if ix=1.

master
Reece H. Dunn 7 years ago
parent
commit
dfe66289c8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/dictionary.c

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

@@ -1076,7 +1076,7 @@ void SetWordStress(Translator *tr, char *output, unsigned int *dictionary_flags,
}
if (ix == 0) return;
final_ph = phonetic[ix-1];
final_ph2 = phonetic[ix-2];
final_ph2 = phonetic[(ix > 1) ? ix-2 : ix-1];

max_output = output + (N_WORD_PHONEMES-3); // check for overrun


Loading…
Cancel
Save