Browse Source

[1.36.02]

Fix for crash on word with abnormally large number of vowels (eg "Hiiiiii.....")


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@167 d46cf337-b52f-0410-862d-fd96e6ae7743
master
jonsd 17 years ago
parent
commit
0b244ba4a5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/dictionary.cpp

+ 1
- 1
src/dictionary.cpp View File

@@ -805,7 +805,7 @@ static int GetVowelStress(Translator *tr, unsigned char *phonemes, unsigned char
int primary_posn = 0;

vowel_stress[0] = 0;
while((phcode = *phonemes++) != 0)
while(((phcode = *phonemes++) != 0) && (count < (N_WORD_PHONEMES/2)-1))
{
if((ph = phoneme_tab[phcode]) == NULL)
continue;

Loading…
Cancel
Save