summaryrefslogtreecommitdiffstats
path: root/pico
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2009-06-29 14:22:35 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2009-06-29 14:22:35 -0700
commit5f6105e73f0c74acd10126175d4952ade10a0b05 (patch)
tree89d37ba1e8977d1b43d341ab71b9af8340e091b2 /pico
parent9b08cc440f25c4722ca112642be87053fc47f918 (diff)
downloadexternal_svox-5f6105e73f0c74acd10126175d4952ade10a0b05.zip
external_svox-5f6105e73f0c74acd10126175d4952ade10a0b05.tar.gz
external_svox-5f6105e73f0c74acd10126175d4952ade10a0b05.tar.bz2
In TTS engine: don't hardcode language string length.
Diffstat (limited to 'pico')
-rw-r--r--pico/tts/com_svox_picottsengine.cpp4
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");
}