diff options
Diffstat (limited to 'hacks/delaunay.c')
-rw-r--r-- | hacks/delaunay.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hacks/delaunay.c b/hacks/delaunay.c index a5ea9ae..a6db5b1 100644 --- a/hacks/delaunay.c +++ b/hacks/delaunay.c @@ -204,8 +204,10 @@ delaunay (int nv,XYZ *pxyz,ITRIANGLE *v,int *ntri) if (inside) { /* Check that we haven't exceeded the edge list size */ if (nedge+3 >= emax) { + IEDGE *edges_old = edges; emax += 100; if ((edges = realloc(edges,emax*(long)sizeof(IEDGE))) == NULL) { + edges = edges_old; status = 3; goto skip; } |