Commit 90b9ae26 authored by Filippo Carone's avatar Filippo Carone

don't count more than argc

parent 68171b34
...@@ -53,7 +53,7 @@ JNIEXPORT jlong JNICALL Java_org_videolan_jvlc_JVLC_createInstance (JNIEnv *env, ...@@ -53,7 +53,7 @@ JNIEXPORT jlong JNICALL Java_org_videolan_jvlc_JVLC_createInstance (JNIEnv *env,
libvlc_exception_init( exception ); libvlc_exception_init( exception );
argc = (int) env->GetArrayLength((jarray) args) + 1; argc = (int) env->GetArrayLength((jarray) args);
argv = (const char **) malloc(argc * sizeof(char*)); argv = (const char **) malloc(argc * sizeof(char*));
for (int i = 0; i < argc; i++) { 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