diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2012-04-29 19:15:42 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2012-04-29 19:15:42 +0000 |
commit | af14211e948791885eb82744d97a4b68a19b4198 (patch) | |
tree | ffb8fde34096c08453d796b31937fe677c771ab7 | |
parent | 31569bde18b131ebf34f03bd01a3854130078f29 (diff) | |
download | netpbm-mirror-af14211e948791885eb82744d97a4b68a19b4198.tar.gz netpbm-mirror-af14211e948791885eb82744d97a4b68a19b4198.tar.xz netpbm-mirror-af14211e948791885eb82744d97a4b68a19b4198.zip |
data block size 255 instead of 254
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1684 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | converter/other/pamtogif.c | 4 | ||||
-rw-r--r-- | doc/HISTORY | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/converter/other/pamtogif.c b/converter/other/pamtogif.c index 1fc564ed..4dac8923 100644 --- a/converter/other/pamtogif.c +++ b/converter/other/pamtogif.c @@ -627,11 +627,11 @@ static void byteBuffer_out(byteBuffer * const byteBufferP, unsigned char const c) { /*---------------------------------------------------------------------------- - Add a byte to the end of the current data block, and if it is now 254 + Add a byte to the end of the current data block, and if it is now 255 characters, flush the data block to the output file. -----------------------------------------------------------------------------*/ byteBufferP->buffer[byteBufferP->count++] = c; - if (byteBufferP->count >= 254) + if (byteBufferP->count >= 255) byteBuffer_flush(byteBufferP); } diff --git a/doc/HISTORY b/doc/HISTORY index c1d5d4a2..e827dea5 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -6,6 +6,10 @@ CHANGE HISTORY not yet BJH Release 10.59.00 + pamtogif: Make data blocks 255 bytes instead of 254. 255 is + the maximum allowed by GIF. 254 was intended to not trigger + potential bugs in programs that read the file. + ppmdraw: Add 'filledcircle' command class. Thanks Elijah Griffin <eli@panix.com>. |