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 /converter | |
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
Diffstat (limited to 'converter')
-rw-r--r-- | converter/other/pamtogif.c | 4 |
1 files changed, 2 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); } |