mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: --reset-settings not working due to superfluous null bytes in string
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user