mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/ByteBuffer: Fixed output truncation in ByteBuffer::hexlike
This commit is contained in:
@@ -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 << "| ";
|
||||
|
||||
Reference in New Issue
Block a user