idz: Remove iffy redundant NUL termination op
This commit is contained in:
committed by
da5669c09fdb0a288ba01e259a609d7779ac7fc9
parent
c877d9d214
commit
27b229e1c2
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user