Skip to content

Commit

Permalink
fix to use dcs_end_size with dcs_start
Browse files Browse the repository at this point in the history
use dcs_start_size instead of dcs_end_size.
  • Loading branch information
ttdoda committed May 11, 2018
1 parent 61ccfb6 commit 8071994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tosixel.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ sixel_penetrate(
- dcs_start_size - dcs_end_size;

for (pos = 0; pos < nwrite; pos += splitsize) {
output->fn_write((char *)dcs_start, dcs_end_size, output->priv);
output->fn_write((char *)dcs_start, dcs_start_size, output->priv);
output->fn_write(((char *)output->buffer) + pos,
nwrite - pos < splitsize ? nwrite - pos: splitsize,
output->priv);
Expand Down

0 comments on commit 8071994

Please sign in to comment.