]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix the library search code (replaced / with 0, should've kept it and replaced the...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 31 May 2005 23:59:51 +0000 (23:59 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 31 May 2005 23:59:51 +0000 (23:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5368 d7cf8633-e32d-0410-b094-e92efae38249

sys_shared.c

index feb3164a6ce6a8ba27b7d2955d0ccee1487a5e44..e4d97cb5168b8d0a4365f8b2f9510ce1eb90ab81 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], '/')) = 0;
+                       strrchr(com_argv[0], '/')[1] = 0;
                        for (i = 0; dllnames[i] != NULL; i++)
                        {
                                char temp[MAX_OSPATH];