Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hp-pcd!hpcvlx!bturner From: bturner@hpcvlx.HP.COM (Bill Turner) Newsgroups: alt.sources Subject: Re: fixed unzip Message-ID: <104290002@hpcvlx.HP.COM> Date: 11 Apr 89 18:51:33 GMT References: <27409@conexch.UUCP> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 15 The only problem with both the original Unzip posting and this was that they were written for byte-swapping architectures. If you want to have it work on non-byte-swapping systems, apply the following changes: 1) All of the signature values need to be byte-swapped. I.e., local_file_header_signature is 0x504b0304L central_file_header_signature is 0x504b0102L end_central_dir_signature is 0x504b0506L 2) In the routine get_byte, declare nibble as unsigned char rather than unsigned int. ----Bill Turner HP Corvallis Workstation Operation