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-fd96e6ae7743master
int primary_posn = 0; | int primary_posn = 0; | ||||
vowel_stress[0] = 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) | if((ph = phoneme_tab[phcode]) == NULL) | ||||
continue; | continue; |