From 493b98c52447461aca5a5bdc41aca7ef1e8e893b Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 24 Dec 2024 22:54:57 +0000 Subject: Change vec_append signature to ensure ptr is constant --- lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib.c') diff --git a/lib.c b/lib.c index 0c32c3b..3be6e0a 100644 --- a/lib.c +++ b/lib.c @@ -67,7 +67,7 @@ char *fread_all(FILE *fp) return buffer.data; } -void vec_append(vec_t *vec, void *ptr, u64 size) +void vec_append(vec_t *vec, const void *const ptr, u64 size) { vec_ensure_free(vec, size); memcpy(vec->data + vec->size, ptr, size); -- cgit v1.2.3-13-gbd6f