Skip to content

Commit 868cfc1

Browse files
quirc: use ps_malloc()
1 parent 8b92724 commit 868cfc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c_mpos/quirc/lib/quirc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ int quirc_resize(struct quirc *q, int w, int h)
6666
* alloc a new buffer for q->image. We avoid realloc(3) because we want
6767
* on failure to be leave `q` in a consistant, unmodified state.
6868
*/
69-
image = ps_malloc(w, h);
69+
image = ps_malloc(w * h);
7070
if (!image)
7171
goto fail;
7272

0 commit comments

Comments
 (0)