summaryrefslogtreecommitdiffstats
path: root/src/base/ftstroke.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/ftstroke.c')
-rw-r--r--src/base/ftstroke.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/base/ftstroke.c b/src/base/ftstroke.c
index fecb3cc..4f3c493 100644
--- a/src/base/ftstroke.c
+++ b/src/base/ftstroke.c
@@ -4,7 +4,7 @@
/* */
/* FreeType path stroker (body). */
/* */
-/* Copyright 2002-2015 by */
+/* Copyright 2002-2016 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -712,9 +712,10 @@
FT_Outline* outline )
{
/* copy point locations */
- FT_ARRAY_COPY( outline->points + outline->n_points,
- border->points,
- border->num_points );
+ if ( border->num_points )
+ FT_ARRAY_COPY( outline->points + outline->n_points,
+ border->points,
+ border->num_points );
/* copy tags */
{