diff options
| author | NoName <322016+Faq@users.noreply.github.com> | 2020-05-11 23:21:31 +0300 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-11 22:21:31 +0200 | 
| commit | 26439c8951886ccea960d121ef21a770a11e4f18 (patch) | |
| tree | 4f91f5a751ef1a26a9a13ff3ef6510b2983a17c2 /src | |
| parent | 472e1fd8aeea80c6b32253007a204e645f89dc2e (diff) | |
Core/ByteBuffer: Fixed output truncation in ByteBuffer::hexlike (#24595)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/shared/Packets/ByteBuffer.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/shared/Packets/ByteBuffer.cpp b/src/server/shared/Packets/ByteBuffer.cpp index 0406da061e7..e99ace2a274 100644 --- a/src/server/shared/Packets/ByteBuffer.cpp +++ b/src/server/shared/Packets/ByteBuffer.cpp @@ -188,8 +188,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 << "| ";  | 
