Index: src/OFLHAArchiveEntry.m ================================================================== --- src/OFLHAArchiveEntry.m +++ src/OFLHAArchiveEntry.m @@ -342,15 +342,10 @@ self = [super init]; @try { uint32_t date; - _compressionMethod = [[OFString alloc] - initWithCString: header + 2 - encoding: OFStringEncodingASCII - length: 5]; - memcpy(&_compressedSize, header + 7, 4); _compressedSize = OFFromLittleEndian32((uint32_t)_compressedSize); memcpy(&_uncompressedSize, header + 11, 4); @@ -438,10 +433,15 @@ exceptionWithVersion: version]; } if (_fileName == nil) @throw [OFInvalidFormatException exception]; + + _compressionMethod = [[OFString alloc] + initWithCString: header + 2 + encoding: OFStringEncodingASCII + length: 5]; [_extensions makeImmutable]; } @catch (id e) { [self release]; @throw e;