diff options
author | George Williams <gww@silcom.com> | 2003-04-29 04:10:07 +0000 |
---|---|---|
committer | George Williams <gww@silcom.com> | 2003-04-29 04:10:07 +0000 |
commit | 48796f6f4e279a82654092d7c09dbc60fa56ed9e (patch) | |
tree | b60008ec31bdc351b1b015a8a8e6b470bd7afe04 | |
parent | 533aa2b7439f3cef1cfcfc0fbfdc16b2857e59f7 (diff) |
Was outputting byte counts with the wrong endian-ness.
-rw-r--r-- | fondu.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 ) { |