From 98aa4f3580135c4731f8ca888c6a4f466460682b Mon Sep 17 00:00:00 2001 From: laqieer Date: Tue, 15 Mar 2022 21:16:53 +0800 Subject: [PATCH] fix: fix the glitch that cut the end of the file if it's larger than the changed file patch was originally created with --- js/formats/ups.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/formats/ups.js b/js/formats/ups.js index 07a81f1..c48a0d9 100644 --- a/js/formats/ups.js +++ b/js/formats/ups.js @@ -64,7 +64,7 @@ UPS.prototype.apply=function(romFile, validate){ } /* copy original file */ - tempFile=new MarcFile(this.sizeOutput); + tempFile=new MarcFile(sizeOutput); romFile.copyToFile(tempFile, 0, this.sizeInput); romFile.seek(0);