shithub: freetype+ttf2subf

Download patch

ref: 5cdeb3cd6028bbc585a4538bb141be1a5acc7cfa
parent: 5987445073894155e3a1811e84f60b2804fd4fa8
author: Werner Lemberg <[email protected]>
date: Tue Jul 31 16:17:13 EDT 2012

Fix Savannah bug #37000.

* src/type1/t1load.c (parse_encoding): Fix order of checks.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-07-31  Werner Lemberg  <[email protected]>
+
+	Fix Savannah bug #37000.
+
+	* src/type1/t1load.c (parse_encoding): Fix order of checks.
+
 2012-07-17  Werner Lemberg  <[email protected]>
 
 	Fix Savannah bug #36833.
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -1284,7 +1284,7 @@
 
           cur = parser->root.cursor;
 
-          if ( *cur == '/' && cur + 2 < limit && n < count )
+          if ( cur + 2 < limit && *cur == '/' && n < count )
           {
             FT_PtrDist  len;