summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2016-07-19 07:23:17 +0200
committerWerner Lemberg <wl@gnu.org>2016-07-19 07:23:38 +0200
commit9f6426eb16c666c3545faf913af260214205c77c (patch)
tree0bc900cd970f6e47e676261bb44d2600aa530a78
parente69f34b1e2023f66201b557a35fc48d81fb6a874 (diff)
downloadfreetype2-9f6426eb16c666c3545faf913af260214205c77c.tar.gz
Thinko; fix previous commit.
-rw-r--r--src/truetype/ttgxvar.c4
1 files changed, 2 insertions, 2 deletions
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;