Differences From:
File
src/zip.c
part of check-in
[39bbc6010e]
- Fix two problems in the ZIP downloader, as reported by
ticket e28adcd72503a.
by
drh on
2008-11-27 13:25:58.
[view]
To:
File
src/zip.c
part of check-in
[deb6f2af4f]
- Change the disk number start from 1 to 0 in generated ZIP archives.
Ticket 04cba6a00145ab597dabc48ad5ee688496a57650
by
drh on
2009-06-20 23:05:55.
[view]
@@ -193,9 +193,9 @@
put32(&zBuf[24], nByte);
put16(&zBuf[28], nameLen);
put16(&zBuf[30], 0);
put16(&zBuf[32], 0);
- put16(&zBuf[34], 1);
+ put16(&zBuf[34], 0);
put16(&zBuf[36], 0);
put32(&zBuf[38], ((unsigned)(0100000 | 0644))<<16);
put32(&zBuf[42], iStart);
blob_append(&toc, zBuf, 46);