aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/Map.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/Map.c b/generic/Map.c
index a9a6ed7..55ce5c0 100644
--- a/generic/Map.c
+++ b/generic/Map.c
@@ -1023,7 +1023,8 @@ Draw(Item item)
cnt = ZnListSize(map->vectors);
if (cnt) {
- xpoints = (XPoint *) alloca(cnt * sizeof(XPoint));
+ ZnListAssertSize(wi->work_xpts, cnt);
+ xpoints = (XPoint *) ZnListArray(wi->work_xpts);
points = (ZnPoint *) ZnListArray(map->vectors);
for (i = 0; i < cnt; i++) {
xpoints[i].x = points[i].x;