summaryrefslogtreecommitdiffstats
path: root/pico/tts/com_svox_picottsengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pico/tts/com_svox_picottsengine.cpp')
-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");
}