[sixel_trans_auxvec] AUXVECELEMSIZE, not 3

This commit is contained in:
nick black 2022-02-07 18:07:52 -05:00
parent 196958dce0
commit 4730c3de47
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -1678,7 +1678,7 @@ void sixel_cleanup(tinfo* ti){
}
uint8_t* sixel_trans_auxvec(const ncpile* p){
const size_t slen = 3 * p->cellpxy * p->cellpxx;
const size_t slen = AUXVECELEMSIZE * p->cellpxy * p->cellpxx;
uint8_t* a = malloc(slen);
if(a){
memset(a, 0, slen);