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
This commit is contained in:
Kenny Root
2010-02-18 10:35:17 -08:00
parent 3f5144b8a4
commit 1ead4f0f70

View File

@@ -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);