mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-02-09 05:48:53 -06:00
fix: Crash when printing NULL bytes to the pattern console
This commit is contained in:
@@ -246,7 +246,7 @@ namespace hex::plugin::builtin {
|
||||
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::PopStyleColor();
|
||||
|
||||
Reference in New Issue
Block a user