From 868cfc1c3575d9f19dee4857fcf33712d7bb5c84 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Mon, 12 May 2025 18:16:15 +0200 Subject: [PATCH] quirc: use ps_malloc() --- c_mpos/quirc/lib/quirc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c_mpos/quirc/lib/quirc.c b/c_mpos/quirc/lib/quirc.c index 5baece8e..286f9122 100644 --- a/c_mpos/quirc/lib/quirc.c +++ b/c_mpos/quirc/lib/quirc.c @@ -66,7 +66,7 @@ int quirc_resize(struct quirc *q, int w, int h) * alloc a new buffer for q->image. We avoid realloc(3) because we want * on failure to be leave `q` in a consistant, unmodified state. */ - image = ps_malloc(w, h); + image = ps_malloc(w * h); if (!image) goto fail;