(svn r7372) - CodeChange: Rename all GetXXXArraySize() functions to GetNumXXX() and add GetMaxXXXIndex() functions. This prepares for the new pool interface.
This commit is contained in:
@@ -1151,7 +1151,7 @@ static void GlobalSortSignList(void)
|
||||
uint n = 0;
|
||||
|
||||
/* Create array for sorting */
|
||||
_sign_sort = realloc((void *)_sign_sort, GetSignArraySize() * sizeof(_sign_sort[0]));
|
||||
_sign_sort = realloc((void *)_sign_sort, (GetMaxSignIndex() + 1)* sizeof(_sign_sort[0]));
|
||||
if (_sign_sort == NULL) {
|
||||
error("Could not allocate memory for the sign-sorting-list");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user