Commit 9f6426eb16c666c3545faf913af260214205c77c

Werner Lemberg 2016-07-19T07:23:17

Thinko; fix previous commit.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/truetype/ttgxvar.c b/src/truetype/ttgxvar.c
index 3715796..033b57f 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;