equal
deleted
inserted
replaced
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; |