[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
This commit is contained in:
jonsd
2008-03-13 01:24:55 +00:00
parent ed8d0c5bfc
commit 0b244ba4a5
+1 -1
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;