diff options
author | marha <marha@users.sourceforge.net> | 2012-01-09 16:34:28 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-01-09 16:34:28 +0100 |
commit | a1e97828c89278770cb249039ec92d959440c640 (patch) | |
tree | f3d4ed7e3f3d589c606f01b3c9e6de03d638e2d3 /mkfontscale/ident.c | |
parent | 7e9f4ea970e8f7008c212d7d3918a974eb0066da (diff) | |
download | vcxsrv-a1e97828c89278770cb249039ec92d959440c640.tar.gz vcxsrv-a1e97828c89278770cb249039ec92d959440c640.tar.bz2 vcxsrv-a1e97828c89278770cb249039ec92d959440c640.zip |
xwininfo libX11 mesa mkfontscale xkeyboard-config git update 9 jan 2011
Diffstat (limited to 'mkfontscale/ident.c')
-rw-r--r-- | mkfontscale/ident.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mkfontscale/ident.c b/mkfontscale/ident.c index 15fb76be2..bf544832c 100644 --- a/mkfontscale/ident.c +++ b/mkfontscale/ident.c @@ -142,8 +142,8 @@ fontFileSeek(fontFile *ff, z_off_t offset, int whence) break; default: return -1; - } - + } + while (n > BUFSIZ) { if (BZ2_bzread(ff->f.bz2, buf, BUFSIZ) != BUFSIZ) return -1; @@ -221,7 +221,7 @@ getInt32(fontFile *f, int format) } } -int +int bitmapIdentify(const char *filename, char **name) { fontFile ff; @@ -270,7 +270,7 @@ pcfIdentify(fontFile *f, char **name) rc = fontFileSeek(f, prop_position, SEEK_SET); if(rc < 0) goto fail; - + format = getLSB32(f); if((format & 0xFFFFFF00) != 0) goto fail; @@ -428,7 +428,7 @@ bdfIdentify(fontFile *f, char **name) while(1) { if(!eol) { rc = bdfskip(f); - if(rc < 0) + if(rc < 0) goto fail; } k = getKeyword(f, &eol); |