Fix using crash abort reason string as printf format string
This commit is contained in:
@@ -567,8 +567,7 @@ static void CDECL HandleCrash(int signum)
|
|||||||
|
|
||||||
const char *abort_reason = CrashLog::GetAbortCrashlogReason();
|
const char *abort_reason = CrashLog::GetAbortCrashlogReason();
|
||||||
if (abort_reason != NULL) {
|
if (abort_reason != NULL) {
|
||||||
printf("A serious fault condition occurred in the game. The game will shut down.\n");
|
printf("A serious fault condition occurred in the game. The game will shut down.\n%s", abort_reason);
|
||||||
printf(abort_reason);
|
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user