--- src/update.vala.orig	2019-01-04 12:01:53.000000000 -0800
+++ src/update.vala	2019-01-04 12:04:02.000000000 -0800
@@ -188,7 +188,7 @@
 
             Archive.Read zipreader = new Archive.Read();
             zipreader.set_format(Archive.Format.ZIP);
-            zipreader.open_memory(output, size_read);
+            zipreader.open_memory(output);
 
             string json = "";
             unowned Archive.Entry e = null;
@@ -198,7 +198,7 @@
                     found_ruleset_file = true;
                     uint8[] jsonblock = new uint8[1024*1024];
                     while (true) {
-                        var r = zipreader.read_data(jsonblock, 1024*1024);
+                        var r = zipreader.read_data(jsonblock);
                         if (r < 0) {
                             throw new UpdateError.CANT_READ_FROM_ARCHIVE("Failed reading archive stream");
                         }
