Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
libfetch: move back to realloc to build on macOS
Baptiste Daroussin committed 1 month ago
commit 51d1a4a403c5c50ba79ce4e32d98700fe039f3d3
parent 88be255
1 file changed +1 -1
modified external/libfetch/common.c
@@ -1593,7 +1593,7 @@ fetch_add_entry(struct url_ent **p, int *size, int *len,
	}

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