From: havoc Date: Tue, 31 May 2005 23:59:51 +0000 (+0000) Subject: fix the library search code (replaced / with 0, should've kept it and replaced the... X-Git-Tag: xonotic-v0.1.0preview~4814 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=12ce012780a225f3e919db67662f953631e28ce6;p=xonotic%2Fdarkplaces.git fix the library search code (replaced / with 0, should've kept it and replaced the next character) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5368 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sys_shared.c b/sys_shared.c index feb3164a..e4d97cb5 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], '/')) = 0; + strrchr(com_argv[0], '/')[1] = 0; for (i = 0; dllnames[i] != NULL; i++) { char temp[MAX_OSPATH];