From 4c8cba53efa2c481bd34c7e3daaf0676bad59797 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 25 Apr 2022 02:53:52 +1000 Subject: [PATCH] Patch: Fix incorrect format string on patch error --- pcsx2/Patch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/Patch.cpp b/pcsx2/Patch.cpp index 3b19f89f82..1eff69a793 100644 --- a/pcsx2/Patch.cpp +++ b/pcsx2/Patch.cpp @@ -265,13 +265,13 @@ namespace PatchFunc if (iPatch.cpu == 0) { - PATCH_ERROR("Unrecognized CPU Target: '%s'", static_cast(pieces[1].size()), pieces[1].data()); + PATCH_ERROR("Unrecognized CPU Target: '%.*s'", static_cast(pieces[1].size()), pieces[1].data()); return; } if (iPatch.type == 0) { - PATCH_ERROR("Unrecognized Operand Size: '%s'", static_cast(pieces[3].size()), pieces[3].data()); + PATCH_ERROR("Unrecognized Operand Size: '%.*s'", static_cast(pieces[3].size()), pieces[3].data()); return; }