Skip to content

Commit 51d1a4a

Browse files
committed
libfetch: move back to realloc to build on macOS
1 parent 88be255 commit 51d1a4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

external/libfetch/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1593,7 +1593,7 @@ fetch_add_entry(struct url_ent **p, int *size, int *len,
15931593
}
15941594

15951595
if (*len >= *size - 1) {
1596-
tmp = reallocarray(*p, *size * 2 + 1, sizeof(**p));
1596+
tmp = realloc(*p, (*size * 2 + 1) * sizeof(**p));
15971597
if (tmp == NULL) {
15981598
errno = ENOMEM;
15991599
fetch_syserr();

0 commit comments

Comments
 (0)