From 8992f717731390fb8152c8833c56ddfc80cf695c Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 3 Sep 2009 04:06:55 +0000 Subject: [PATCH] - Fixed: zipdir did not byte-swap file sizes in the central directory. SVN r1787 (trunk) --- tools/zipdir/zipdir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/zipdir/zipdir.c b/tools/zipdir/zipdir.c index 9080b2d2a..584cf98ae 100644 --- a/tools/zipdir/zipdir.c +++ b/tools/zipdir/zipdir.c @@ -980,8 +980,8 @@ int write_central_dir(FILE *zip, file_sorted_t *filep) dir.ModTime = file->time; dir.ModDate = file->date; dir.CRC32 = file->crc32; - dir.CompressedSize = file->compressed_size; - dir.UncompressedSize = file->uncompressed_size; + dir.CompressedSize = LittleLong(file->compressed_size); + dir.UncompressedSize = LittleLong(file->uncompressed_size); dir.NameLength = LittleShort((unsigned short)strlen(filep->path_in_zip)); dir.ExtraLength = 0; dir.CommentLength = 0;