From fbacc1e1c4e2dd785512c1a9df4f96f3f79286b0 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 4 Apr 2013 11:46:06 +0000 Subject: Fixed CreateHexDump() filling the string with garbage git-svn-id: http://mc-server.googlecode.com/svn/trunk@1357 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/StringUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/StringUtils.cpp b/source/StringUtils.cpp index e98830f00..f3450f620 100644 --- a/source/StringUtils.cpp +++ b/source/StringUtils.cpp @@ -538,6 +538,7 @@ AString & CreateHexDump(AString & a_Out, const void * a_Data, int a_Size, int a_ unsigned char c = ((unsigned char *)a_Data)[i + j]; p[0] = HEX(c >> 4); p[1] = HEX(c & 0xf); + p[2] = ' '; if (c >= ' ') { q[0] = (char)c; -- cgit v1.2.3