Date: Tue, 06 May 2003 20:14:26 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: peuha AT cc DOT helsinki DOT fi Message-Id: <2950-Tue06May2003201426+0300-eliz@elta.co.il> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp-workers AT delorie DOT com In-reply-to: (message from Esa A E Peuha on Tue, 6 May 2003 14:27:31 +0300 (EET DST)) Subject: Re: djtar and slightly weirdly formatted ZIPs, revision 2 [PATCH] References: Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Tue, 6 May 2003 14:27:31 +0300 (EET DST) > From: Esa A E Peuha > > > ! fprintf(log_out, > > ! "%s: don't understand header type 0x%x%x\n", > > ! zipfilename, ((char *)&buffer)[0], ((char *)&buffer)[1]); > > These bytes should be printed with "%02x", not "%x" (else 0x0f0f will be > printed as 0xff) Don't you mean %2.2x?