[sixel] fix from @dknl (Daniel Eklöf) for memset #1391

pull/1431/head
nick black 3 years ago committed by Nick Black
parent c6aab0a398
commit 77e00da697

@ -415,8 +415,8 @@ int sixel_blit(ncplane* nc, int linesize, const void* data, int begy, int begx,
return -1;
}
// stable.table doesn't need initializing; we start from the bottom
memset(stable.data, 0, sixelcount * bargs->pixel.colorregs);
memset(stable.deets, 0, sizeof(*stable.deets) * bargs->pixel.colorregs);
memset(stable.data, 0, sixelcount * colorregs);
memset(stable.deets, 0, sizeof(*stable.deets) * colorregs);
if(extract_color_table(data, linesize, begy, begx, leny, lenx, &stable)){
free(stable.table);
free(stable.data);

Loading…
Cancel
Save