From: havoc Date: Wed, 1 Jun 2005 00:05:49 +0000 (+0000) Subject: it helps to mangle the correct string... X-Git-Tag: xonotic-v0.1.0preview~4813 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=427c73e03f1af5ace70bf75db4d1b1661a6a6492;p=xonotic%2Fdarkplaces.git it helps to mangle the correct string... git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5369 d7cf8633-e32d-0410-b094-e92efae38249 --- 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];