Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
libfetch: move back to realloc to build on macOS
Baptiste Daroussin committed 2 months ago
commit 51d1a4a403c5c50ba79ce4e32d98700fe039f3d3
parent 88be255a80185cec70873e3489523623dabd87d0
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();