fix two more error strings in pack_create.c using the wrong function name
diff --git a/lib/pack_create.c b/lib/pack_create.c
index 47d4d3b..0aecb0b 100644
--- a/lib/pack_create.c
+++ b/lib/pack_create.c
@@ -88,7 +88,7 @@ alloc_meta(struct got_pack_meta **new, struct got_object_id *id,
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));
@@ -833,7 +833,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;
}