#49 gifinto built with MinGW writes 1 byte too many

v1.0_(example)
closed
nobody
None
1
2014-03-24
2013-10-06
No

Trying gifinto to copy a GIF file, like this:

gifinto test.gif < foo.gif

reveals that the created file test.gif is 1 byte larger than the original. My analysis is that the read/write loop tests for EOF too late. I propose the patch in the attachment, which fixes the problem for me.

1 Attachments

Discussion

  • Eric S. Raymond

    Eric S. Raymond - 2013-10-06
    • status: open --> accepted
     
  • Eric S. Raymond

    Eric S. Raymond - 2014-03-24

    Patch merged.

     
  • Eric S. Raymond

    Eric S. Raymond - 2014-03-24
    • status: accepted --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks