]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
it helps to mangle the correct string...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 1 Jun 2005 00:05:49 +0000 (00:05 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 1 Jun 2005 00:05:49 +0000 (00:05 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5369 d7cf8633-e32d-0410-b094-e92efae38249

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];