summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Williams <gww@silcom.com>2003-04-29 04:10:07 +0000
committerGeorge Williams <gww@silcom.com>2003-04-29 04:10:07 +0000
commit48796f6f4e279a82654092d7c09dbc60fa56ed9e (patch)
treeb60008ec31bdc351b1b015a8a8e6b470bd7afe04
parent533aa2b7439f3cef1cfcfc0fbfdc16b2857e59f7 (diff)
Was outputting byte counts with the wrong endian-ness.
-rw-r--r--fondu.c12
1 files changed, 6 insertions, 6 deletions
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 ) {