summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gs/freetype/src/type1/t1load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gs/freetype/src/type1/t1load.c b/gs/freetype/src/type1/t1load.c
index 4385417a4..59af25407 100644
--- a/gs/freetype/src/type1/t1load.c
+++ b/gs/freetype/src/type1/t1load.c
@@ -1400,7 +1400,7 @@
/* If the next token isn't `dup' we are done. */
- if ( parser->root.cursor + 4 < parser->root.limit &&
+ if ( parser->root.cursor + 4 >= parser->root.limit ||
ft_strncmp( (char*)parser->root.cursor, "dup", 3 ) != 0 )
break;