From 7ff3e46819bf994691c65045dcc949af5c55e80d Mon Sep 17 00:00:00 2001 From: rhythmcache <153998419+rhythmcache@users.noreply.github.com> Date: Tue, 30 Dec 2025 13:08:40 +0530 Subject: [PATCH] Remove static from _caca_alloc2d --- src/common-image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common-image.c b/src/common-image.c index 461879a..48653ec 100644 --- a/src/common-image.c +++ b/src/common-image.c @@ -30,7 +30,7 @@ static unsigned int u32fread(caca_file_t *); static unsigned int u16fread(caca_file_t *); static unsigned int u8fread(caca_file_t *); -static void *_caca_alloc2d(size_t width, size_t height, size_t elem_size) +void *_caca_alloc2d(size_t width, size_t height, size_t elem_size) { if (width == 0 || height == 0 || elem_size == 0 || SIZE_MAX / width / height < elem_size) return NULL;