about summary refs log tree commit diff
path: root/converter
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2012-04-29 19:15:42 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2012-04-29 19:15:42 +0000
commitaf14211e948791885eb82744d97a4b68a19b4198 (patch)
treeffb8fde34096c08453d796b31937fe677c771ab7 /converter
parent31569bde18b131ebf34f03bd01a3854130078f29 (diff)
downloadnetpbm-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.c4
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);
 }