From af14211e948791885eb82744d97a4b68a19b4198 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 29 Apr 2012 19:15:42 +0000 Subject: 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 --- converter/other/pamtogif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'converter') 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); } -- cgit 1.4.1