Commit 2d467c6d020f635039e8a2fadf1b6ea7f7a18a9e

Stefan Sperling 2021-10-13T18:07:29

fix wrong function in error string of emitdelta()

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/deltify.c b/lib/deltify.c
index 79d8be1..b7d25c9 100644
--- a/lib/deltify.c
+++ b/lib/deltify.c
@@ -310,7 +310,7 @@ emitdelta(struct got_delta_instruction **deltas, size_t *nalloc, int *ndeltas,
 		p = reallocarray(*deltas, *nalloc + alloc_chunk_size,
 		    sizeof(struct got_delta_instruction));
 		if (p == NULL)
-			return got_error_from_errno("realloc");
+			return got_error_from_errno("reallocarray");
 		*deltas = p;
 		*nalloc += alloc_chunk_size;
 	}