summaryrefslogtreecommitdiff
path: root/source/core/slang-hex-dump-util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-hex-dump-util.cpp')
-rw-r--r--source/core/slang-hex-dump-util.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/core/slang-hex-dump-util.cpp b/source/core/slang-hex-dump-util.cpp
index 1583d8461..b0bd6f923 100644
--- a/source/core/slang-hex-dump-util.cpp
+++ b/source/core/slang-hex-dump-util.cpp
@@ -75,6 +75,13 @@ static const char s_hex[] = "0123456789abcdef";
*dst++ = s_hex[byte & 0xf];
}
+ // If not a complete line write spaces
+ for (size_t i = count; i < size_t(maxBytesPerLine); ++i)
+ {
+ *dst++ = ' ';
+ *dst++ = ' ';
+ }
+
*dst++ = ' ';
for (size_t i = 0; i < count; ++i)