shithub: freetype+ttf2subf

Download patch

ref: 52b430abeaf6b9768c20320bcd026e29d653030d
parent: 1ca6f2d1366057ab87b84404cb91b96779449bb1
author: David Turner <[email protected]>
date: Fri Jul 7 21:18:38 EDT 2000

fixed a rather stupid bug in the last patch (one of those with
dire consequences..)

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/cff/t2gload.c
+++ b/src/cff/t2gload.c
@@ -476,7 +476,7 @@
     {
       builder->path_begun = 1;
       error = add_contour( builder );
-      if ( !error )
+      if ( error )
         return error;
     }
     return add_point1( builder, x, y );
@@ -609,7 +609,7 @@
         {
           if ( ip + 1 >= limit )
             goto Syntax_Error;
-          val = (FT_Int32)( ( (FT_Short)ip[0] << 8 ) | ip[1] );
+          val = (FT_Short)( ( (FT_Short)ip[0] << 8 ) | ip[1] );
           ip += 2;
         }
         else if ( v < 247 )