diff options
Diffstat (limited to 'bitmap.c')
-rw-r--r-- | bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -87,7 +87,7 @@ reserve(struct bitmap *b, u_int n) | |||
87 | return -1; /* invalid */ | 87 | return -1; /* invalid */ |
88 | nlen = (n / BITMAP_BITS) + 1; | 88 | nlen = (n / BITMAP_BITS) + 1; |
89 | if (b->len < nlen) { | 89 | if (b->len < nlen) { |
90 | if ((tmp = reallocarray(b->d, nlen, BITMAP_BYTES)) == NULL) | 90 | if ((tmp = recallocarray(b->d, b->len, nlen, BITMAP_BYTES)) == NULL) |
91 | return -1; | 91 | return -1; |
92 | b->d = tmp; | 92 | b->d = tmp; |
93 | memset(b->d + b->len, 0, (nlen - b->len) * BITMAP_BYTES); | 93 | memset(b->d + b->len, 0, (nlen - b->len) * BITMAP_BYTES); |