]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_shared.c
it helps to mangle the correct string...
[xonotic/darkplaces.git] / sys_shared.c
index e4d97cb5168b8d0a4365f8b2f9510ce1eb90ab81..ed4a487f1c7369cb599b1452f57880212738ba7b 100644 (file)
@@ -68,7 +68,7 @@ qboolean Sys_LoadLibrary (const char** dllnames, dllhandle_t* handle, const dllf
                {
                        char path[MAX_OSPATH];
                        strlcpy(path, com_argv[0], sizeof(path));
-                       strrchr(com_argv[0], '/')[1] = 0;
+                       strrchr(path, '/')[1] = 0;
                        for (i = 0; dllnames[i] != NULL; i++)
                        {
                                char temp[MAX_OSPATH];