aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src/mksercommfw.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/firmware-utils/src/mksercommfw.c')
-rw-r--r--tools/firmware-utils/src/mksercommfw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/mksercommfw.c b/tools/firmware-utils/src/mksercommfw.c
index 7f31d4f4c7..ccd5d67a87 100644
--- a/tools/firmware-utils/src/mksercommfw.c
+++ b/tools/firmware-utils/src/mksercommfw.c
@@ -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);