]> git.pld-linux.org Git - packages/XFree86.git/blame - XFree86-libXfont-put-eof.patch
- moved %%{_includedir}{,/X11} from base to -libs (may be used without base)
[packages/XFree86.git] / XFree86-libXfont-put-eof.patch
CommitLineData
17745ec0
JB
1BufFilePut is called (through FontFilePutc macro) with some (shr-ed or not)
2ints. int may be equal -1 (e.g. 0xFFFFFFFF or 0xFFxxxxxx >> 24). -1 has
3special meaning for BufFileRawFlush (just flush instead of write char and
4flush), so any FF values on buffer boundary disappeared...
5
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
8@@ -74,7 +74,7 @@
9 extern void BufFileFree ( BufFilePtr );
10
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))
15
16 #ifndef TRUE
This page took 0.028399 seconds and 4 git commands to generate.