From 48796f6f4e279a82654092d7c09dbc60fa56ed9e Mon Sep 17 00:00:00 2001 From: George Williams Date: Tue, 29 Apr 2003 04:10:07 +0000 Subject: Was outputting byte counts with the wrong endian-ness. --- fondu.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'fondu.c') diff --git a/fondu.c b/fondu.c index c729e63..d88213b 100644 --- a/fondu.c +++ b/fondu.c @@ -406,10 +406,10 @@ return; else { long hold = ftell(pfb); fseek(pfb,lenpos,SEEK_SET); - putc(len>>24,pfb); - putc((len>>16)&0xff,pfb); - putc((len>>8)&0xff,pfb); putc(len&0xff,pfb); + putc((len>>8)&0xff,pfb); + putc((len>>16)&0xff,pfb); + putc(len>>24,pfb); fseek(pfb,hold,SEEK_SET); if ( ch1==5 ) /* end of font mark */ break; @@ -456,10 +456,10 @@ return; putc(0x80,pfb); putc(3,pfb); fseek(pfb,lenpos,SEEK_SET); - putc(len>>24,pfb); - putc((len>>16)&0xff,pfb); - putc((len>>8)&0xff,pfb); putc(len&0xff,pfb); + putc((len>>8)&0xff,pfb); + putc((len>>16)&0xff,pfb); + putc(len>>24,pfb); fclose(pfb); if ( cleanfilename(newname)) { if ( rename(name,newname)==-1 ) { -- cgit v1.2.3