summaryrefslogtreecommitdiff
path: root/src/ldump.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldump.js')
-rw-r--r--src/ldump.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ldump.js b/src/ldump.js
index 99780f6..a2abbed 100644
--- a/src/ldump.js
+++ b/src/ldump.js
@@ -66,8 +66,8 @@ const DumpString = function(s, D) {
if (s === null)
DumpByte(0, D);
else {
- let size = s.length + 1;
- let str = s;
+ let size = s.tsslen() + 1;
+ let str = s.getstr();
if (size < 0xFF)
DumpByte(size, D);
else {