diff --git a/source/views/view_hexeditor.cpp b/source/views/view_hexeditor.cpp index 7367c53a0..5b8819a9f 100644 --- a/source/views/view_hexeditor.cpp +++ b/source/views/view_hexeditor.cpp @@ -137,7 +137,7 @@ namespace hex { size_t copySize = (end - start) + 1; - std::string buffer; + std::string buffer(copySize, 0x00); buffer.reserve(copySize + 1); this->m_dataProvider->read(start, buffer.data(), copySize);