Core/ByteBuffer: Fixed output truncation in ByteBuffer::hexlike

This commit is contained in:
Shauren
2018-07-21 15:10:05 +02:00
parent 252206e8b7
commit b76098651a

View File

@@ -156,8 +156,8 @@ void ByteBuffer::hexlike() const
for (uint32 i = 0; i < size(); ++i)
{
char buf[3];
snprintf(buf, 3, "%2X ", read<uint8>(i));
char buf[4];
snprintf(buf, 4, "%2X ", read<uint8>(i));
if ((i == (j * 8)) && ((i != (k * 16))))
{
o << "| ";