From 2552912e96033bf97978ca9bd7a64857246f9ba8 Mon Sep 17 00:00:00 2001 From: hasufell Date: Sun, 8 Jun 2014 04:24:25 +0200 Subject: [PATCH] Fix bezier allocations Former-commit-id: 588d1e5215bfd031832922394a7ddbe536e0917d --- src/half_edge_AS.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/half_edge_AS.c b/src/half_edge_AS.c index 8561d76..8461644 100644 --- a/src/half_edge_AS.c +++ b/src/half_edge_AS.c @@ -257,7 +257,7 @@ static bool assemble_obj_arrays(char const * const obj_string, MAYBE_REALLOC(bez[bzc], sizeof(**bez), - (int32_t)bzc > bez_arr_alloc_c - 2, + (int32_t)i > bez_arr_alloc_c - 2, bez_arr_alloc_c, bez_arr_alloc_chunk);