1
0
mirror of synced 2024-11-24 15:50:16 +01:00

impr: Remove spaces from fill command input

This commit is contained in:
WerWolv 2024-01-09 01:26:47 +01:00
parent bdee628360
commit d43f25ec70

View File

@ -528,10 +528,12 @@ namespace hex::plugin::builtin {
}
private:
static void fill(u64 address, size_t size, const std::string &input) {
static void fill(u64 address, size_t size, std::string input) {
if (!ImHexApi::Provider::isValid())
return;
std::erase(input, ' ');
auto bytes = crypt::decode16(input);
if (bytes.empty())
return;