summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2011-06-28 01:23:36 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-06-28 01:23:36 -0700
commitfa3f4251c7de03b4d30df616a5cde27a626dc3bc (patch)
tree84de39cd2112f6929e460c4961b222240b0ccce8
parent7c362b6760e34583ed550c60e94e0a8e10c4776a (diff)
parent398201b57015e1698fad25d9586b97c88936947a (diff)
downloadexternal_svox-fa3f4251c7de03b4d30df616a5cde27a626dc3bc.zip
external_svox-fa3f4251c7de03b4d30df616a5cde27a626dc3bc.tar.gz
external_svox-fa3f4251c7de03b4d30df616a5cde27a626dc3bc.tar.bz2
Merge "Fix a pico bug."
-rw-r--r--pico/tts/com_svox_picottsengine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/pico/tts/com_svox_picottsengine.cpp b/pico/tts/com_svox_picottsengine.cpp
index bafd300..2370964 100644
--- a/pico/tts/com_svox_picottsengine.cpp
+++ b/pico/tts/com_svox_picottsengine.cpp
@@ -1073,7 +1073,7 @@ tts_result TtsEngine::init( synthDoneCB_t synthDoneCBPtr, const char *config )
strcpy((char*)pico_alt_lingware_path, config);
LOGV("Alternative lingware path %s", pico_alt_lingware_path);
} else {
- pico_alt_lingware_path = (char*)malloc(strlen(PICO_LINGWARE_PATH));
+ pico_alt_lingware_path = (char*)malloc(strlen(PICO_LINGWARE_PATH) + 1);
strcpy((char*)pico_alt_lingware_path, PICO_LINGWARE_PATH);
LOGV("Using predefined lingware path %s", pico_alt_lingware_path);
}
@@ -1659,4 +1659,3 @@ TtsEngine * getTtsEngine( void )
#ifdef __cplusplus
}
#endif
-