diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2009-06-29 14:22:35 -0700 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2009-06-29 14:22:35 -0700 |
commit | 5f6105e73f0c74acd10126175d4952ade10a0b05 (patch) | |
tree | 89d37ba1e8977d1b43d341ab71b9af8340e091b2 | |
parent | 9b08cc440f25c4722ca112642be87053fc47f918 (diff) | |
download | external_svox-5f6105e73f0c74acd10126175d4952ade10a0b05.zip external_svox-5f6105e73f0c74acd10126175d4952ade10a0b05.tar.gz external_svox-5f6105e73f0c74acd10126175d4952ade10a0b05.tar.bz2 |
In TTS engine: don't hardcode language string length.
-rw-r--r-- | pico/tts/com_svox_picottsengine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pico/tts/com_svox_picottsengine.cpp b/pico/tts/com_svox_picottsengine.cpp index 84835ae..8a6d1d5 100644 --- a/pico/tts/com_svox_picottsengine.cpp +++ b/pico/tts/com_svox_picottsengine.cpp @@ -728,8 +728,8 @@ tts_result TtsEngine::getLanguage(char *language, char *country, char *variant) strcpy(country, "\0"); strcpy(variant, "\0"); } else { - strncpy(language, picoSupportedLangIso3[picoCurrentLangIndex], 3); - strncpy(country, picoSupportedCountryIso3[picoCurrentLangIndex], 3); + strcpy(language, picoSupportedLangIso3[picoCurrentLangIndex]); + strcpy(country, picoSupportedCountryIso3[picoCurrentLangIndex]); // no variant in this implementation strcpy(variant, "\0"); } |