mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
Replace unchecked allocations with calls to xmalloc.h functions
This commit is contained in:
parent
43e27a8843
commit
91b22ae21a
6 changed files with 7 additions and 7 deletions
2
shm.c
2
shm.c
|
|
@ -489,7 +489,7 @@ get_new_buffers(struct buffer_chain *chain, size_t count,
|
|||
else
|
||||
tll_push_front(chain->bufs, buf);
|
||||
|
||||
buf->public.dirty = malloc(
|
||||
buf->public.dirty = xmalloc(
|
||||
chain->pix_instances * sizeof(buf->public.dirty[0]));
|
||||
|
||||
for (size_t j = 0; j < chain->pix_instances; j++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue