diff --git a/tools/tiff2ps.c b/tools/tiff2ps.c index 82a5d84..776ad2c 100644 --- a/tools/tiff2ps.c +++ b/tools/tiff2ps.c @@ -3030,7 +3030,7 @@ tsize_t Ascii85EncodeBlock( uint8 * ascii85_p, unsigned f_eod, const uint8 * raw * If requested add an ASCII85 End Of Data marker: */ - if ( f_eod ) + if ( ascii85_p && (f_eod )) { ascii85_p[ascii85_l++] = '~'; ascii85_p[ascii85_l++] = '>'; diff --git a/tools/tiffcrop.c b/tools/tiffcrop.c index 722b132..470a18d 100644 --- a/tools/tiffcrop.c +++ b/tools/tiffcrop.c @@ -958,7 +958,6 @@ static int readContigTilesIntoBuffer (TIFF* in, uint8* buf, return 1; } } - prev_trailing_bits += trailing_bits; /* if (prev_trailing_bits > 7) */ /* prev_trailing_bits-= 8; */ }