aboutsummaryrefslogtreecommitdiff
path: root/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
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);