You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
quirc: use ps_malloc()
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user