commit 6331840f5347a764cfa02bb5c650ed9ec87dda6d from: Stefan Sperling date: Wed May 22 11:06:33 2019 UTC fix got_error_from_errno() arguments in inflate.c commit - da506691d2d9491c869110f2ee209ae3014c7273 commit + 6331840f5347a764cfa02bb5c650ed9ec87dda6d blob - d393031f5f1064c32785a460c7f37e6c85673645 blob + 3986b17e44eecf61ea0e972208e12e87099dfe66 --- lib/inflate.c +++ lib/inflate.c @@ -220,7 +220,7 @@ got_inflate_to_mem(uint8_t **outbuf, size_t *outlen, F *outbuf = malloc(GOT_INFLATE_BUFSIZE); if (*outbuf == NULL) - return got_error_from_errno("calloc"); + return got_error_from_errno("malloc"); err = got_inflate_init(&zb, *outbuf, GOT_INFLATE_BUFSIZE); if (err) return err; @@ -264,7 +264,7 @@ got_inflate_to_mem_fd(uint8_t **outbuf, size_t *outlen *outbuf = malloc(GOT_INFLATE_BUFSIZE); if (*outbuf == NULL) - return got_error_from_errno("calloc"); + return got_error_from_errno("malloc"); err = got_inflate_init(&zb, *outbuf, GOT_INFLATE_BUFSIZE); if (err) goto done; @@ -309,7 +309,7 @@ got_inflate_to_mem_mmap(uint8_t **outbuf, size_t *outl *outbuf = malloc(GOT_INFLATE_BUFSIZE); if (*outbuf == NULL) - return got_error_from_errno("calloc"); + return got_error_from_errno("malloc"); err = got_inflate_init(&zb, *outbuf, GOT_INFLATE_BUFSIZE); if (err) { free(*outbuf);