From a90532ccb1ac8e0ffba2fa7c35c1536360eba553 Mon Sep 17 00:00:00 2001 From: Ishan09811 <156402647+Ishan09811@users.noreply.github.com> Date: Thu, 21 Mar 2024 21:25:17 +0530 Subject: [PATCH] ZipBuilder: fixes --- .../src/main/java/com/panda3ds/pandroid/utils/ZipBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/ZipBuilder.java b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/ZipBuilder.java index 760e32f93..604569621 100644 --- a/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/ZipBuilder.java +++ b/src/pandroid/app/src/main/java/com/panda3ds/pandroid/utils/ZipBuilder.java @@ -45,7 +45,7 @@ private void append(String path, String parent) throws Exception { byte[] buffer = new byte[1024 * 64]; int len; while ((len = input.read(buffer)) != -1) { - output.write(buffer, 0, len); + zip.write(buffer, 0, len); } input.close(); zip.flush(); @@ -58,4 +58,4 @@ public void end() throws Exception { zip.close(); output.close(); } -} \ No newline at end of file +}