From 236cb5722486c55977f0fbfb277aac0960117bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 17 Feb 2019 17:46:42 +0000 Subject: [PATCH] More info on crash screen --- UI/EmuScreen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/EmuScreen.cpp b/UI/EmuScreen.cpp index ea0dc9ea11..b624dd6186 100644 --- a/UI/EmuScreen.cpp +++ b/UI/EmuScreen.cpp @@ -1271,7 +1271,8 @@ static void DrawCrashDump(DrawBuffer *draw2d) { FontID ubuntu24("UBUNTU24"); char statbuf[4096]; char versionString[256]; - sprintf(versionString, "%s", PPSSPP_GIT_VERSION); + snprintf(versionString, sizeof(versionString), "%s", PPSSPP_GIT_VERSION); + // TODO: Draw a lot more information. Full register set, and so on. #ifdef _DEBUG