ramips: fix image generation for mt76x8
[openwrt/staging/wigyori.git] / tools / firmware-utils / src / mksercommfw.c
index 7f31d4f4c79c3b6bdc6d74af66e1fc2581727f59..ccd5d67a87dc85c5accb80e96c440f5a01fc4be0 100644 (file)
@@ -208,7 +208,7 @@ int main(int argc, char *argv[])
 #endif
        /* now that we got the rootfs, repeat the whole thing again(sorta):
         * 1. zip the rootfs */
-       char *zipper = malloc(5 + 2*strlen(rootfs.file_name) + 4);
+       char *zipper = malloc(5 + 2*strlen(rootfs.file_name) + 6);
        sprintf(zipper, "%s %s %s", "zip ", zipfsname, rootfs.file_name);
        int ret = system(zipper);