From efd2e434b4edf519b61c03d941477300e65d5ba3 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 7 Jul 2019 00:20:35 +0300 Subject: [PATCH] engine: fix build on non-x86 archs --- engine/common/lib_common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/common/lib_common.c b/engine/common/lib_common.c index 7d953a8e..263347e0 100644 --- a/engine/common/lib_common.c +++ b/engine/common/lib_common.c @@ -126,11 +126,11 @@ static void COM_GenerateServerLibraryName( char *out, size_t size ) char *ext; #if XASH_WIN32 - Q_strncpy( dllname, GI->game_dll, sizeof( dllname ) ); + Q_strncpy( dllpath, GI->game_dll, sizeof( dllname ) ); #elif XASH_APPLE - Q_strncpy( dllname, GI->game_dll_osx, sizeof( dllname ) ); + Q_strncpy( dllpath, GI->game_dll_osx, sizeof( dllname ) ); #else // XASH_APPLE - Q_strncpy( dllname, GI->game_dll_linux, sizeof( dllname ) ); + Q_strncpy( dllpath, GI->game_dll_linux, sizeof( dllname ) ); #endif ext = COM_FileExtension( dllpath );