From 12ce012780a225f3e919db67662f953631e28ce6 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 31 May 2005 23:59:51 +0000 Subject: [PATCH] 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 --- sys_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.39.2