mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 21:39:47 +00:00
[1.29.20] Fix for crash in Chinese text.
git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@104 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
+3
-2
@@ -203,6 +203,7 @@ int Translator::TranslateRoman(char *word, char *ph_out)
|
||||
{//=====================================================
|
||||
int c;
|
||||
char *p;
|
||||
const char *p2;
|
||||
int acc;
|
||||
int prev;
|
||||
int value;
|
||||
@@ -219,10 +220,10 @@ int Translator::TranslateRoman(char *word, char *ph_out)
|
||||
|
||||
while((c = *word++) != ' ')
|
||||
{
|
||||
if((p = strchr(roman_numbers,c)) == NULL)
|
||||
if((p2 = strchr(roman_numbers,c)) == NULL)
|
||||
return(0);
|
||||
|
||||
value = roman_values[p - roman_numbers];
|
||||
value = roman_values[p2 - roman_numbers];
|
||||
|
||||
if((prev==5) || (prev==50) || (prev==500))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user