Commit 90b9ae26 authored by littlejohn's avatar littlejohn
Browse files

don't count more than argc

parent 68171b34
......@@ -53,7 +53,7 @@ JNIEXPORT jlong JNICALL Java_org_videolan_jvlc_JVLC_createInstance (JNIEnv *env,
libvlc_exception_init( exception );
argc = (int) env->GetArrayLength((jarray) args) + 1;
argc = (int) env->GetArrayLength((jarray) args);
argv = (const char **) malloc(argc * sizeof(char*));
for (int i = 0; i < argc; i++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment