awww fuck me in the ass #429

This commit is contained in:
nick black 2020-03-29 06:52:13 -04:00
parent a45d888601
commit ac31bf3a12
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -384,7 +384,7 @@ ncplane* ncplane_dup(ncplane* n, void* opaque){
n->attrword = attr;
n->channels = chan;
ncplane_move_above_unsafe(newn, n);
memcpy(newn->fb, n->fb, sizeof(*n->fb) * dimy * dimy);
memmove(newn->fb, n->fb, sizeof(*n->fb) * dimx * dimy);
}
}
return newn;