commit b7e0a38461dd7c0fb1261f45640ec533e7305709 from: Stefan Sperling via: Thomas Adam date: Fri Oct 15 19:22:03 2021 UTC fix two more error strings in pack_create.c using the wrong function name commit - 7d76c4e74f889f004513c9aea5398deb37497e9a commit + b7e0a38461dd7c0fb1261f45640ec533e7305709 blob - 55f61382d4f074d706dc6d052fd5df1313c5b78d blob + 317a1c4ba802b847110d43e4221424da8e62c8c0 --- lib/pack_create.c +++ lib/pack_create.c @@ -86,7 +86,7 @@ alloc_meta(struct got_pack_meta **new, struct got_obje m = calloc(1, sizeof(*m)); if (m == NULL) - return got_error_from_errno("malloc"); + return got_error_from_errno("calloc"); memcpy(&m->id, id, sizeof(m->id)); @@ -831,7 +831,7 @@ read_meta(struct got_pack_meta ***meta, int *nmeta, v.metasz = 64; v.meta = calloc(v.metasz, sizeof(struct got_pack_meta *)); if (v.meta == NULL) { - err = got_error_from_errno("reallocarray"); + err = got_error_from_errno("calloc"); goto done; }