quirc: use ps_malloc()

This commit is contained in:
Thomas Farstrike
2025-05-12 18:16:15 +02:00
parent 8b92724ed1
commit 868cfc1c35
+1 -1
View File
@@ -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;