From ebb0b2d9c50c9064f337de160dbeb89c13ad2bc8 Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 15 Jan 2003 23:01:02 +0000 Subject: [PATCH] * src/gzip/ftgzip.c: bugfix: couldn't read certain gzip-ed font files --- ChangeLog | 4 ++++ src/gzip/ftgzip.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 80e3e273d..d9467f5b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-01-15 James Su + + * src/gzip/ftgzip.c: bugfix: couldn't read certain gzip-ed font files + 2003-01-15 Huw D M Davies * include/freetype/config/ftheader.h, include/freetype/internal/fnttypes.h, diff --git a/src/gzip/ftgzip.c b/src/gzip/ftgzip.c index b814e8ec5..a736ea869 100644 --- a/src/gzip/ftgzip.c +++ b/src/gzip/ftgzip.c @@ -177,7 +177,7 @@ (void)FT_STREAM_SKIP( 6 ); /* skip the extra field */ - if ( head[3] && FT_GZIP_EXTRA_FIELD ) + if ( head[3] & FT_GZIP_EXTRA_FIELD ) { FT_UInt len; @@ -187,7 +187,7 @@ } /* skip original file name */ - if ( head[3] && FT_GZIP_ORIG_NAME ) + if ( head[3] & FT_GZIP_ORIG_NAME ) for (;;) { FT_UInt c;