(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:
matthijs
2006-12-05 13:58:20 +00:00
parent 681f994d16
commit 9218fc16e6
17 changed files with 74 additions and 42 deletions

View File

@@ -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");
}