From a69ddf840c711a1f45c69fdf0aa6208d4f2cfe51 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 27 Nov 2013 22:22:39 -0800 Subject: [PATCH] Fix some formatting warnings. --- Core/MIPS/MIPSDisVFPU.cpp | 2 +- UI/MainScreen.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/MIPS/MIPSDisVFPU.cpp b/Core/MIPS/MIPSDisVFPU.cpp index 253858bb78..bea774bff9 100644 --- a/Core/MIPS/MIPSDisVFPU.cpp +++ b/Core/MIPS/MIPSDisVFPU.cpp @@ -532,7 +532,7 @@ namespace MIPSDis int vs = _VS; int imm = (int)((op >> 16) & 0xFF); const char *name = MIPSGetName(op); - sprintf(out, "%s%s\t%s, %s", name, VSuff(op), VN(vd, sz), VN(vs, sz), imm); + sprintf(out, "%s%s\t%s, %s, %d", name, VSuff(op), VN(vd, sz), VN(vs, sz), imm); } void Dis_Vf2h(MIPSOpcode op, char *out) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index f413c9f6b3..9560ac23e9 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -189,9 +189,9 @@ void GameButton::Draw(UIContext &dc) { char discNumInfo[8]; if (ginfo->disc_total > 1) - sprintf(discNumInfo, "-DISC%d",ginfo->disc_number); + sprintf(discNumInfo, "-DISC%d", ginfo->disc_number); else - sprintf(discNumInfo, ""); + strcpy(discNumInfo, ""); dc.Draw()->Flush(); dc.RebindTexture();