summaryrefslogtreecommitdiff
path: root/source/core
diff options
context:
space:
mode:
Diffstat (limited to 'source/core')
-rw-r--r--source/core/slang-hex-dump-util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-hex-dump-util.cpp b/source/core/slang-hex-dump-util.cpp
index b400fb15b..cf11a9a51 100644
--- a/source/core/slang-hex-dump-util.cpp
+++ b/source/core/slang-hex-dump-util.cpp
@@ -79,7 +79,7 @@ SlangResult HexDumpUtil::dumpSourceBytes(
// each byte is output as "0xAA, "
// Ends with '\n"
- const size_t lineBytes = count * (4 + 1 + 1) * count + 1;
+ const size_t lineBytes = count * 6 + 1;
char* startDst = writer->beginAppendBuffer(lineBytes);
char* dst = startDst;