idz: Remove iffy redundant NUL termination op

This commit is contained in:
Tau
2021-02-03 23:43:37 +00:00
committed by da5669c09fdb0a288ba01e259a609d7779ac7fc9
parent c877d9d214
commit 27b229e1c2
+1 -1
View File
@@ -33,7 +33,7 @@ function writeStr(
str: string,
encoding: string
) {
const tmp = iconv.encode(str + "\0", encoding);
const tmp = iconv.encode(str, encoding);
if (tmp.length >= end - begin) {
throw new Error("String field overflow");