Kaydet (Commit) 963c98a6 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Guard against lack of slashes in dli_fname

Change-Id: Id9c452d9c1034f2e7969a9eae7588f2eb81a8813
üst 7b7c28f9
......@@ -1603,7 +1603,10 @@ Java_org_libreoffice_android_Bootstrap_setCommandArgs(JNIEnv* env,
if (slash != NULL)
*slash = '\0';
slash = strrchr(new_argv0, '/');
strcpy(slash+1, c_argv[0]);
if (slash != NULL)
strcpy(slash+1, c_argv[0]);
else
strcpy(new_argv0, c_argv[0]);
free(c_argv[0]);
c_argv[0] = new_argv0;
}
......
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