diff options
author | Kenny Root <kroot@google.com> | 2010-02-18 10:35:17 -0800 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2010-03-04 11:06:59 -0800 |
commit | 1ead4f0f707d5fc966563e39eadd7aa73fa71aca (patch) | |
tree | 205ac6fa16065a853a9d7025f47dcfd099b91ce1 /packages | |
parent | 3f5144b8a4b45a05cf7c1b0bd0422d0bd9ecb59b (diff) | |
download | frameworks_base-1ead4f0f707d5fc966563e39eadd7aa73fa71aca.zip frameworks_base-1ead4f0f707d5fc966563e39eadd7aa73fa71aca.tar.gz frameworks_base-1ead4f0f707d5fc966563e39eadd7aa73fa71aca.tar.bz2 |
Expand buffer in SynthProxy to hold int
32-bit signed integers are 11 bytes and a byte at the end for \0
Change-Id: I6a9cf69ecc64614c610cbade1c3398506d6f62f5
Diffstat (limited to 'packages')
-rw-r--r-- | packages/TtsService/jni/android_tts_SynthProxy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/TtsService/jni/android_tts_SynthProxy.cpp b/packages/TtsService/jni/android_tts_SynthProxy.cpp index 2f5cfa3..b7acd96 100644 --- a/packages/TtsService/jni/android_tts_SynthProxy.cpp +++ b/packages/TtsService/jni/android_tts_SynthProxy.cpp @@ -551,7 +551,7 @@ android_tts_SynthProxy_setSpeechRate(JNIEnv *env, jobject thiz, jint jniData, return result; } - int bufSize = 10; + int bufSize = 12; char buffer [bufSize]; sprintf(buffer, "%d", speechRate); @@ -581,7 +581,7 @@ android_tts_SynthProxy_setPitch(JNIEnv *env, jobject thiz, jint jniData, Mutex::Autolock l(engineMutex); - int bufSize = 10; + int bufSize = 12; char buffer [bufSize]; sprintf(buffer, "%d", pitch); |