From 6a0e3b41f6590f857f8b201c8d3a2a0a46307f9c Mon Sep 17 00:00:00 2001 From: Max Wash Date: Thu, 30 Jan 2025 21:50:45 +0000 Subject: [PATCH] fix void pointer arithmetic --- src/write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/write.c b/src/write.c index 4112818..f552709 100644 --- a/src/write.c +++ b/src/write.c @@ -324,7 +324,7 @@ enum ec3_status ec3_tag_writer_write( size_t cluster_size = cluster_sizes[w->w_parent->w_param.p_cluster_size]; enum ec3_status status = EC3_SUCCESS; - void *buf = w->w_buf; + unsigned char *buf = w->w_buf; while (len > 0) { size_t remaining = cluster_size - w->w_ptr;