ObjFW  Check-in [8d4650f6c1]

Overview
Comment:OFZIPArchive: Write correct number of disks
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 1.0
Files: files | file ages | folders
SHA3-256: 8d4650f6c13b9a465de071867a4728cb11d5fe2ab5232a8849f05f81f97fbc6c
User & Date: js on 2024-03-10 23:33:44
Other Links: branch diff | manifest | tags
Context
2024-03-11
20:43
Update ChangeLog for 1.0.12 check-in: 804547fc0d user: js tags: 1.0
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:07
OFZIPArchive: Undo incorrect disk 0 vs 1 fix check-in: fe62007081 user: js tags: 1.0
Changes

Modified src/OFZIPArchive.m from [d1df601deb] to [0f27411636].

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 */