mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
correct order of parameters to calloc() from #2768
This commit is contained in:
parent
bf5e74c872
commit
39700bf64a
@ -602,7 +602,7 @@ ncplane* ncplane_new_internal(notcurses* nc, ncplane* n,
|
||||
}
|
||||
|
||||
size_t fbsize = ncplane_sizeof_cellarray(p->leny, p->lenx);
|
||||
if(!fbsize || (p->fb = calloc(sizeof(struct nccell),fbsize)) == NULL){
|
||||
if(!fbsize || (p->fb = calloc(fbsize, sizeof(struct nccell))) == NULL){
|
||||
logerror("error allocating cellmatrix (r=%u, c=%u)",
|
||||
p->leny, p->lenx);
|
||||
free(p);
|
||||
|
Loading…
x
Reference in New Issue
Block a user