summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-hbitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/test-hbitmap.c')
-rw-r--r--tests/unit/test-hbitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test-hbitmap.c b/tests/unit/test-hbitmap.c
index b6726cf76b..a4fe067917 100644
--- a/tests/unit/test-hbitmap.c
+++ b/tests/unit/test-hbitmap.c
@@ -113,7 +113,7 @@ static void hbitmap_test_truncate_impl(TestHBitmapData *data,
n = hbitmap_test_array_size(size);
m = hbitmap_test_array_size(data->old_size);
- data->bits = g_realloc(data->bits, sizeof(unsigned long) * n);
+ data->bits = g_renew(unsigned long, data->bits, n);
if (n > m) {
memset(&data->bits[m], 0x00, sizeof(unsigned long) * (n - m));
}