<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">_caca_alloc2d is an internal function and not exported to
the image viewer. It is basically a glorified call to malloc.

--- src/common-image.c.orig	2021-11-06 10:15:28.000000000 -0400
+++ src/common-image.c	2021-11-06 10:15:59.000000000 -0400
@@ -161,7 +161,7 @@
     uint32_t depth = (bpp + 7) / 8;
 
     /* Allocate the pixel buffer */
-    im-&gt;pixels = _caca_alloc2d(im-&gt;w, im-&gt;h, depth);
+    im-&gt;pixels = malloc(im-&gt;w * im-&gt;h * depth);
     if (!im-&gt;pixels)
     {
         caca_file_close(f);
</pre></body></html>