From 47ffd8f16005952eb9efcf5a9c20af2ada28e63a Mon Sep 17 00:00:00 2001 From: Greg Date: Wed, 20 Nov 2019 15:00:53 -0500 Subject: [PATCH] fixup --- jni_android.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jni_android.c b/jni_android.c index 96bff92..f97632c 100644 --- a/jni_android.c +++ b/jni_android.c @@ -104,11 +104,11 @@ Encrypt(JNIEnv* env, jobject p, char* cid, int idlen, char* cdata, int datalen, void Clip(JNIEnv* env, jobject p, char* cdata, int datalen) { jbyteArray data = (*env)->NewByteArray(env, datalen); - if (datalen > 0 { + if (datalen > 0) { (*env)->SetByteArrayRegion(env, data, 0, datalen, cdata); } - jclass cls = (*env)->GetObjectClass(p); - jmethodID mid = (*env)->GetMethodID(env, cls, "Clip", "([B)V); + jclass cls = (*env)->GetObjectClass(env, p); + jmethodID mid = (*env)->GetMethodID(env, cls, "Clip", "([B)V"); (*env)->CallVoidMethod(env, p, mid, data); }