@@ -334,15 +334,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); @@ -425,10 +420,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;