# HG changeset patch # User Matti Hamalainen # Date 1567496414 -10800 # Node ID 9360a693d8af9dfcac1dfc4fd5ed8456f6d3d7d0 # Parent 0115b3dd9064d8fa79a9064aa55840e3cda9a973 Cosmetics. diff -r 0115b3dd9064 -r 9360a693d8af tools/packed.c --- a/tools/packed.c Tue Sep 03 10:40:03 2019 +0300 +++ b/tools/packed.c Tue Sep 03 10:40:14 2019 +0300 @@ -224,9 +224,9 @@ // Compute directory offset and number of entries memcpy(&hdr.ident, DPACK_IDENT, sizeof(hdr.ident)); - hdr.version = DPACK_VERSION; + hdr.version = DPACK_VERSION; hdr.dirEntries = 0; - hdr.dirOffset = + hdr.dirOffset = sizeof(hdr.ident) + sizeof(hdr.version) + sizeof(hdr.dirEntries) + sizeof(hdr.dirOffset); @@ -243,7 +243,7 @@ if (fseeko(pack->file, 0, SEEK_SET) != 0) return DMERR_FSEEK; - if (!dm_fwrite_str(pack->file, (Uint8 *) & hdr.ident, sizeof(hdr.ident)) || + if (!dm_fwrite_str(pack->file, (Uint8 *) &hdr.ident, sizeof(hdr.ident)) || !dm_fwrite_le16(pack->file, hdr.version) || !dm_fwrite_le32(pack->file, hdr.dirEntries) || !dm_fwrite_le64(pack->file, hdr.dirOffset))