ObjFW  Check-in [9f7c0669b0]

Overview
Comment:OFZIPArchive: Write correct number of disks
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9f7c0669b0f826ceafc3a2cf608ad0a8367a6cebf3401d66203c3cca03a657d2
User & Date: js on 2024-03-10 23:33:27
Other Links: manifest | tags
Context
2024-03-16
19:48
Add OFFileManagerTests check-in: ccace0f0e0 user: js tags: trunk
2024-03-10
23:33
OFZIPArchive: Write correct number of disks check-in: 8d4650f6c1 user: js tags: 1.0
23:33
OFZIPArchive: Write correct number of disks check-in: 9f7c0669b0 user: js tags: trunk
23:10
ofarc: Fix multipart ZIP files check-in: ddcef349e5 user: js tags: trunk
Changes

Modified src/OFZIPArchive.m from [31b9073e70] to [c500265762].

658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
	[_stream writeLittleEndianInt64: _centralDirectoryOffset];

	/* ZIP64 end of central directory locator */
	[_stream writeLittleEndianInt32: 0x07064B50];
	[_stream writeLittleEndianInt32: _diskNumber];
	[_stream writeLittleEndianInt64:
	    _centralDirectoryOffset + _centralDirectorySize];
	[_stream writeLittleEndianInt32: 1];	/* Total number of disks */

	/* End of central directory */
	[_stream writeLittleEndianInt32: 0x06054B50];
	[_stream writeLittleEndianInt16: 0xFFFF];	/* Disk number */
	[_stream writeLittleEndianInt16: 0xFFFF];	/* CD disk */
	[_stream writeLittleEndianInt16: 0xFFFF];	/* CD entries in disk */
	[_stream writeLittleEndianInt16: 0xFFFF];	/* CD entries */







|







658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
	[_stream writeLittleEndianInt64: _centralDirectoryOffset];

	/* ZIP64 end of central directory locator */
	[_stream writeLittleEndianInt32: 0x07064B50];
	[_stream writeLittleEndianInt32: _diskNumber];
	[_stream writeLittleEndianInt64:
	    _centralDirectoryOffset + _centralDirectorySize];
	[_stream writeLittleEndianInt32: 0];	/* Total number of disks */

	/* End of central directory */
	[_stream writeLittleEndianInt32: 0x06054B50];
	[_stream writeLittleEndianInt16: 0xFFFF];	/* Disk number */
	[_stream writeLittleEndianInt16: 0xFFFF];	/* CD disk */
	[_stream writeLittleEndianInt16: 0xFFFF];	/* CD entries in disk */
	[_stream writeLittleEndianInt16: 0xFFFF];	/* CD entries */