diff --git a/engine/platform/posix/crash_libbacktrace.c b/engine/platform/posix/crash_libbacktrace.c index 04d4418c..46b7627e 100644 --- a/engine/platform/posix/crash_libbacktrace.c +++ b/engine/platform/posix/crash_libbacktrace.c @@ -168,7 +168,7 @@ void Sys_CrashLibbacktrace( int signal, siginfo_t *si, void *context ) Sys_Quit( "crashed" ); } -qboolean Sys_SetupLibbacktrace( void ) +qboolean Sys_SetupLibbacktrace( const char *argv0 ) { enable_libbacktrace = true; g_bt_state = backtrace_create_state( argv0, true, Sys_BacktraceError, NULL ); diff --git a/engine/platform/posix/crash_posix.c b/engine/platform/posix/crash_posix.c index 63ad5ecb..f8460ef2 100644 --- a/engine/platform/posix/crash_posix.c +++ b/engine/platform/posix/crash_posix.c @@ -29,7 +29,7 @@ GNU General Public License for more details. void Sys_Crash( int signal, siginfo_t *si, void *context ); void Sys_CrashLibbacktrace( int signal, siginfo_t *si, void *context ); -qboolean Sys_SetupLibbacktrace( void ); +qboolean Sys_SetupLibbacktrace( const char *argv0 ); static struct sigaction oldFilter; #if !HAVE_EXECINFO && !HAVE_LIBBACKTRACE @@ -212,7 +212,7 @@ void Sys_SetupCrashHandler( const char *argv0 ) { struct sigaction act = { 0 }; #if HAVE_LIBBACKTRACE - if( Sys_SetupLibbacktrace()) + if( Sys_SetupLibbacktrace( argv0 )) { act.sa_sigaction = Sys_CrashLibbacktrace; }