From 5d138cd733bb132ef4ca1a45103abfbce2e9233a Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" <pesco@khjk.org> Date: Fri, 29 Nov 2019 17:17:19 +0100 Subject: [PATCH] avoid errc() for the linuxes --- pdf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf.c b/pdf.c index 4208524..35fcc92 100644 --- a/pdf.c +++ b/pdf.c @@ -553,7 +553,7 @@ parse_xrefs(const char *input, size_t sz, size_t *nxrefs) /* save this section in xrefs */ if (n >= SIZE_MAX / sizeof(HParsedToken *)) - errc(1, EOVERFLOW, "overflow"); + errx(1, "realloc: size would overflow"); xrefs = realloc(xrefs, (n + 1) * sizeof(HParsedToken *)); if (xrefs == NULL) err(1, "realloc"); -- GitLab