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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user