From 12c89a61f97c6892b4546d2a374fd732e04a2eb0 Mon Sep 17 00:00:00 2001 From: Mary-nyan Date: Thu, 25 Aug 2022 21:59:15 +0200 Subject: [PATCH] misc: Fix missing null terminator for strings with pchtxt (#3629) As title say. --- Ryujinx.HLE/Loaders/Mods/IPSwitchPatcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ryujinx.HLE/Loaders/Mods/IPSwitchPatcher.cs b/Ryujinx.HLE/Loaders/Mods/IPSwitchPatcher.cs index f0a32f86f1..8cc03d05b6 100644 --- a/Ryujinx.HLE/Loaders/Mods/IPSwitchPatcher.cs +++ b/Ryujinx.HLE/Loaders/Mods/IPSwitchPatcher.cs @@ -253,7 +253,7 @@ namespace Ryujinx.HLE.Loaders.Mods if (tokens[1][0] == '"') { - var patch = Encoding.ASCII.GetBytes(tokens[1].Trim('"')); + var patch = Encoding.ASCII.GetBytes(tokens[1].Trim('"') + "\0"); patches.Add((uint)offset, patch); } else