From 5fd9aeb12b75a3971e86e5b7d1701115f57fbc12 Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 22 Aug 2006 20:41:26 +0000 Subject: (svn r6055) -Codechange: added GetXXXArraySize, which returns HighestID + 1 (or, will do that). It isn't the best name, but we couldn't find any better. This unifies the pool-system even more. --- graph_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graph_gui.c') diff --git a/graph_gui.c b/graph_gui.c index 677952e0f..e41356aea 100644 --- a/graph_gui.c +++ b/graph_gui.c @@ -1123,7 +1123,7 @@ static void GlobalSortSignList(void) uint n = 0; /* Create array for sorting */ - _sign_sort = realloc(_sign_sort, GetSignPoolSize() * sizeof(_sign_sort[0])); + _sign_sort = realloc(_sign_sort, GetSignArraySize() * sizeof(_sign_sort[0])); if (_sign_sort == NULL) { error("Could not allocate memory for the sign-sorting-list"); } -- cgit v1.2.3-54-g00ecf