Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Commit

Permalink
Another off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Mar 29, 2014
1 parent 0bba5f0 commit 6eb0acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gifwrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ write_compressed_data(Gif_Stream *gfs, Gif_Image *gfi,
work_node = t.node;
run = pos - lastpos - 1;

if (pos < image_endpos) {
if (pos <= image_endpos) {
/* Output the current code. */
if (next_code < GIF_MAX_CODE) {
gfc_define(gfc, work_node, gif_pixel_at_pos(gfi, pos-1), next_code);
Expand Down

0 comments on commit 6eb0acc

Please sign in to comment.