graph_gui.c
changeset 5247 1f982de55b88
parent 5235 2313d53f426a
child 5291 0bd449fe7fe5
equal deleted inserted replaced
5246:fb214a312549 5247:1f982de55b88
  1149 {
  1149 {
  1150 	const Sign *si;
  1150 	const Sign *si;
  1151 	uint n = 0;
  1151 	uint n = 0;
  1152 
  1152 
  1153 	/* Create array for sorting */
  1153 	/* Create array for sorting */
  1154 	_sign_sort = realloc((void *)_sign_sort, GetSignArraySize() * sizeof(_sign_sort[0]));
  1154 	_sign_sort = realloc((void *)_sign_sort, (GetMaxSignIndex() + 1)* sizeof(_sign_sort[0]));
  1155 	if (_sign_sort == NULL) {
  1155 	if (_sign_sort == NULL) {
  1156 		error("Could not allocate memory for the sign-sorting-list");
  1156 		error("Could not allocate memory for the sign-sorting-list");
  1157 	}
  1157 	}
  1158 
  1158 
  1159 	FOR_ALL_SIGNS(si) _sign_sort[n++] = si;
  1159 	FOR_ALL_SIGNS(si) _sign_sort[n++] = si;