From fd9a2e680c66207f38fe5c1d96a926a5966c4069 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 12 Aug 2017 00:57:54 +0100 Subject: [PATCH] Fix using crash abort reason string as printf format string --- src/os/unix/crashlog_unix.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/os/unix/crashlog_unix.cpp b/src/os/unix/crashlog_unix.cpp index 3b1204874f..a07403d160 100644 --- a/src/os/unix/crashlog_unix.cpp +++ b/src/os/unix/crashlog_unix.cpp @@ -567,8 +567,7 @@ static void CDECL HandleCrash(int signum) const char *abort_reason = CrashLog::GetAbortCrashlogReason(); if (abort_reason != NULL) { - printf("A serious fault condition occurred in the game. The game will shut down.\n"); - printf(abort_reason); + printf("A serious fault condition occurred in the game. The game will shut down.\n%s", abort_reason); abort(); }