From b98a4c55c8242fab656c76876db66df22a435211 Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Mon, 18 Oct 2021 18:31:55 -0700 Subject: [PATCH] pad with zeroes not spaces --- bin/padto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/padto.js b/bin/padto.js index a191dc73b..2a2f48337 100644 --- a/bin/padto.js +++ b/bin/padto.js @@ -2,4 +2,4 @@ a = new ActiveXObject("scripting.filesystemobject") b = a.opentextfile(WScript.Arguments(1)) c = b.readall() b.close() -a.createtextfile(WScript.Arguments(1)).write(String(c + Array(512).join(" ")).substr(0, 512)) +a.createtextfile(WScript.Arguments(1)).write(String(c + Array(512).join(String.fromCharCode(0))).substr(0, 512))