ref: 9f6426eb16c666c3545faf913af260214205c77c
parent: e69f34b1e2023f66201b557a35fc48d81fb6a874
author: Werner Lemberg <[email protected]>
date: Tue Jul 19 03:23:17 EDT 2016
Thinko; fix previous commit.
--- 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;