Differences From Artifact [b94a906de8]:
- File src/OFZooArchiveEntry.m — part of check-in [b431203426] at 2024-03-03 19:29:53 on branch trunk — OFZooArchive: Add write support (user: js, size: 12437) [annotate] [blame] [check-ins using]
To Artifact [656f2fecb7]:
- File src/OFZooArchiveEntry.m — part of check-in [08a06ee30d] at 2024-03-10 01:47:24 on branch trunk — OFZooArchive: Zero-terminate directory & file name (user: js, size: 12564) [annotate] [blame] [check-ins using]
︙ | |||
344 345 346 347 348 349 350 | 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 | - + - + | @throw [OFOutOfRangeException exception]; commentLength = [_fileComment cStringLengthWithEncoding: encoding]; if (commentLength > UINT16_MAX) @throw [OFOutOfRangeException exception]; fileNameLength = [_fileName cStringLengthWithEncoding: encoding]; |
︙ | |||
409 410 411 412 413 414 415 416 417 418 419 420 421 422 | 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 | + + + + + + | /* * CRC16 is filled when writing the next header, as the CRC needs to * include the next header offset. */ [data increaseCountBy: 2]; /* Include \0 */ if (fileNameLength > 0) fileNameLength++; if (directoryNameLength > 0) directoryNameLength++; tmp8 = (uint8_t)fileNameLength; [data addItem: &tmp8]; tmp8 = (uint8_t)directoryNameLength; [data addItem: &tmp8]; [data addItems: [_fileName cStringWithEncoding: encoding] count: fileNameLength]; |
︙ |