fix: --reset-settings not working due to superfluous null bytes in string

This commit is contained in:
WerWolv
2025-05-25 23:23:51 +02:00
parent 0aec3fffe1
commit 39242097dd

View File

@@ -398,7 +398,8 @@ namespace hex::plugin::builtin {
log::print("> ");
if (std::fgets(input.data(), input.size() - 1, stdin) == nullptr)
std::exit(EXIT_FAILURE);
input = input.c_str();
input = wolv::util::trim(input);
if (input == ConfirmationString) {