diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c index 37157962e..033b57f3b 100644 --- a/src/truetype/ttgxvar.c +++ b/src/truetype/ttgxvar.c @@ -159,9 +159,9 @@ } /* in the nested loops below we increase `i' twice; */ - /* it is faster to simply allocate one more slot */ + /* it is faster to simply allocate two more slots */ /* than to add another test within the loop */ - if ( FT_NEW_ARRAY( points, n + 1 ) ) + if ( FT_NEW_ARRAY( points, n + 2 ) ) return NULL; *point_cnt = n;