- Fixed: zipdir did not byte-swap file sizes in the central directory.

SVN r1787 (trunk)
This commit is contained in:
Randy Heit 2009-09-03 04:06:55 +00:00
parent 48d78730f3
commit 8992f71773

View file

@ -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;