[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Devel] Bug in src/gzip/ftgzip.c
From: |
David Turner |
Subject: |
Re: [Devel] Bug in src/gzip/ftgzip.c |
Date: |
Thu, 16 Jan 2003 00:44:55 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 |
Hello James,
James Su wrote:
>Hi,
>There are two typo bugs in src/gzip/ftgzip.c which will cause freetype
>fail to load some gziped font file. The patch is attached.
>
>
>
Applied, thanks...
- David Turner
- The FreeType Project (www.freetype.org)
>------------------------------------------------------------------------
>
>--- src/gzip/ftgzip.c.bak 2002-12-17 05:51:23.000000000 +0800
>+++ src/gzip/ftgzip.c 2003-01-10 14:59:44.000000000 +0800
>@@ -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;
>
>