From 8291994c9362562cac55da33f1a0ef4c9bf1119a Mon Sep 17 00:00:00 2001 From: Tau Date: Sat, 26 Sep 2020 23:39:58 -0400 Subject: [PATCH] idz: Remove iffy redundant NUL termination op --- src/idz/util/bin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/idz/util/bin.ts b/src/idz/util/bin.ts index 79cf7c2..a28a5a8 100644 --- a/src/idz/util/bin.ts +++ b/src/idz/util/bin.ts @@ -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");