freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] Bug in src/gzip/ftgzip.c


From: James Su
Subject: [Devel] Bug in src/gzip/ftgzip.c
Date: Fri, 10 Jan 2003 15:04:42 +0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20021212

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.

Regards
James Su
--- 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;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]