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