diff --git a/src/h5_core/h5_maps.c b/src/h5_core/h5_maps.c index 2bb17e8..7182914 100644 --- a/src/h5_core/h5_maps.c +++ b/src/h5_core/h5_maps.c @@ -29,17 +29,16 @@ _h5_append_to_idlist ( if ( list->num_items == list->size ) { h5_size_t size = list->size; if ( size == 0 ) { - size = 16 * sizeof(list->items[0]); + size = 16; } else { size *= 2; } - TRY ( list->items = _h5_alloc ( f, list->items, size ) ); + TRY ( _h5_alloc_idlist ( f, list, size ) ); } list->items[list->num_items++] = id; return H5_SUCCESS; } - h5_err_t _h5_alloc_idmap ( h5_file_t * const f,