summaryrefslogtreecommitdiff
path: root/src/sfnt/ttcmap.c
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2016-08-25 19:49:52 +0200
committerWerner Lemberg <wl@gnu.org>2016-08-25 19:49:52 +0200
commit69ce97391cc2e7cbc4b6e2e7b7e62708a46280c6 (patch)
tree40aacccf0a0c99a0d24c94a69a5b9fc64b2ef05e /src/sfnt/ttcmap.c
parentacd1879897cff476bb7e53c27d10f3e66b6f4b5c (diff)
downloadfreetype2-69ce97391cc2e7cbc4b6e2e7b7e62708a46280c6.tar.gz
[sfnt] Fix previous commit (#48901).
* src/sfnt/ttcmap.c (tt_cmap4_char_map_binary): Thinkos.
Diffstat (limited to 'src/sfnt/ttcmap.c')
-rw-r--r--src/sfnt/ttcmap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/sfnt/ttcmap.c b/src/sfnt/ttcmap.c
index 0e0479d93..cd7467d4d 100644
--- a/src/sfnt/ttcmap.c
+++ b/src/sfnt/ttcmap.c
@@ -1376,7 +1376,7 @@
/* if p > limit, the whole segment is invalid */
if ( next && p > limit )
- continue;
+ break;
gindex = TT_PEEK_USHORT( p );
if ( gindex )
@@ -1404,9 +1404,6 @@
else if ( (FT_Int)charcode + delta < 0x10000L &&
(FT_Int)end + delta >= 0x10000L )
charcode = (FT_UInt)( 0x10000L - delta );
-
- else
- continue;
}
}