fix: Crash when printing NULL bytes to the pattern console
This commit is contained in:
parent
e272c5d000
commit
e71841b871
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user