diff --git a/src/type1z/z1load.c b/src/type1z/z1load.c index a5fc91cbe..d14a166c0 100644 --- a/src/type1z/z1load.c +++ b/src/type1z/z1load.c @@ -1553,7 +1553,7 @@ max_char = -32000; charcode = 0; - for ( ; charcode < loader.encoding_table.num_elems; charcode++ ) + for ( ; charcode < loader.encoding_table.max_elems; charcode++ ) { type1->encoding.char_index[charcode] = 0; type1->encoding.char_name [charcode] = (char *)".notdef";