idz: Remove iffy redundant NUL termination op

This commit is contained in:
Tau
2021-02-03 23:43:37 +00:00
committed by Tau
parent f5935fbf05
commit 8291994c93
+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");