Skip to content

Commit

Permalink
[sixel] fix from @dknl (Daniel Eklöf) for memset #1391
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Mar 17, 2021
1 parent c6aab0a commit 77e00da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/sixel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 77e00da

Please sign in to comment.