From 2c0e71d7685494546bed5e9447459516c734e560 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 13 Jan 2009 22:15:56 +0000 Subject: [PATCH] put number of files into the header --- installer/mkarchive.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/installer/mkarchive.c b/installer/mkarchive.c index bec26cb..5762143 100644 --- a/installer/mkarchive.c +++ b/installer/mkarchive.c @@ -260,6 +260,7 @@ int main (int argn, char*argv[]) { int t; char buf[320]; + int num = 0; int fullsize = 0; for(t=1;t>8; + unsigned char n3=num>>16; + unsigned char n4=num>>24; + zwriter->write(zwriter,&n1,1); + zwriter->write(zwriter,&n2,1); + zwriter->write(zwriter,&n3,1); + zwriter->write(zwriter,&n4,1); qsort(argv+1, argn-1, sizeof(argv[0]), compare_filenames); -- 1.7.10.4