1 BufFilePut is called (through FontFilePutc macro) with some (shr-ed or not)
2 ints. int may be equal -1 (e.g. 0xFFFFFFFF or 0xFFxxxxxx >> 24). -1 has
3 special meaning for BufFileRawFlush (just flush instead of write char and
4 flush), so any FF values on buffer boundary disappeared...
6 --- XFree86-4.1.0/xc/lib/font/include/bufio.h.orig Wed Jan 17 20:43:31 2001
7 +++ XFree86-4.1.0/xc/lib/font/include/bufio.h Mon Jul 2 13:25:41 2001
9 extern void BufFileFree ( BufFilePtr );
11 #define BufFileGet(f) ((f)->left-- ? *(f)->bufp++ : ((f)->eof = (*(f)->input) (f)))
12 -#define BufFilePut(c,f) (--(f)->left ? *(f)->bufp++ = (c) : (*(f)->output) (c,f))
13 +#define BufFilePut(c,f) (--(f)->left ? *(f)->bufp++ = ((unsigned char)(c)) : (*(f)->output) ((unsigned char)(c),f))
14 #define BufFileSkip(f,c) ((f)->eof = (*(f)->skip) (f, c))