Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ead4f0f authored by Kenny Root's avatar Kenny Root
Browse files

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
parent 3f5144b8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);