diff --git a/plugins/builtin/source/content/views/view_hex_editor.cpp b/plugins/builtin/source/content/views/view_hex_editor.cpp index 188ebdb25..3b5a8d152 100644 --- a/plugins/builtin/source/content/views/view_hex_editor.cpp +++ b/plugins/builtin/source/content/views/view_hex_editor.cpp @@ -456,7 +456,7 @@ namespace hex::plugin::builtin { constexpr static auto BatchFillSize = 1_MiB; std::vector batchData; if (bytes.size() < BatchFillSize) { - batchData.resize(std::min(alignTo(BatchFillSize, bytes.size()), size)); + batchData.resize(std::min(alignTo(BatchFillSize, bytes.size()), size)); for (u64 i = 0; i < batchData.size(); i += bytes.size()) { auto remainingSize = std::min(batchData.size() - i, bytes.size()); std::copy_n(bytes.begin(), remainingSize, batchData.begin() + i);