From 427c73e03f1af5ace70bf75db4d1b1661a6a6492 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 1 Jun 2005 00:05:49 +0000 Subject: [PATCH] it helps to mangle the correct string... git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5369 d7cf8633-e32d-0410-b094-e92efae38249 --- sys_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys_shared.c b/sys_shared.c index e4d97cb5..ed4a487f 100644 --- a/sys_shared.c +++ b/sys_shared.c @@ -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]; -- 2.39.2