1
0
mirror of synced 2024-11-28 09:30:51 +01:00

fix: Crash when printing NULL bytes to the pattern console

This commit is contained in:
WerWolv 2022-12-24 15:29:20 +01:00
parent e272c5d000
commit e71841b871

View File

@ -246,7 +246,7 @@ namespace hex::plugin::builtin {
continue; continue;
} }
if (ImGui::Selectable(hex::format("{}##ConsoleLine", message).c_str())) if (ImGui::Selectable(hex::format("{}##ConsoleLine", hex::encodeByteString({ message.begin(), message.end() })).c_str()))
ImGui::SetClipboardText(message.c_str()); ImGui::SetClipboardText(message.c_str());
ImGui::PopStyleColor(); ImGui::PopStyleColor();