Patch: Fix incorrect format string on patch error

This commit is contained in:
Connor McLaughlin 2022-04-25 02:53:52 +10:00 committed by refractionpcsx2
parent 34cd53249d
commit 4c8cba53ef
1 changed files with 2 additions and 2 deletions

View File

@ -265,13 +265,13 @@ namespace PatchFunc
if (iPatch.cpu == 0)
{
PATCH_ERROR("Unrecognized CPU Target: '%s'", static_cast<int>(pieces[1].size()), pieces[1].data());
PATCH_ERROR("Unrecognized CPU Target: '%.*s'", static_cast<int>(pieces[1].size()), pieces[1].data());
return;
}
if (iPatch.type == 0)
{
PATCH_ERROR("Unrecognized Operand Size: '%s'", static_cast<int>(pieces[3].size()), pieces[3].data());
PATCH_ERROR("Unrecognized Operand Size: '%.*s'", static_cast<int>(pieces[3].size()), pieces[3].data());
return;
}