AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

2000.02.15 05:19 "Bug in tiffcmp -l v3.4beta031", by Joseph Orost

Sam:

tiffcmp -l doesn't work. Here is the fix.

regards,
joe

Full Name:    Joseph M. Orost
Title:        District Manager
EMail:        joseph.orost@att.com
Organization: AT&T Labs: Software Technology Services
SurfaceMail:  3F-302, 307 Middletown Lincroft Rd, Lincroft, NJ 07738-1526
Phone:        +1 (732) 576-2272
Fax:          +1 (732) 576-2277
WWW:          http://www.research.att.com/~orost/

*** tiffcmp.c.orig      Mon Feb 14 13:41:14 2000
--- tiffcmp.c   Mon Feb 14 13:30:19 2000
***************
*** 325,337 ****
         case 8:
                 printf("Scanline %lu, pixel %lu, sample %d: %02x %02x\n",
                   (long) row, (long) pix, sample, w1, w2);
!           if (--stopondiff)
                       exit(1);
                break;
          case 16:
                printf("Scanline %lu, pixel %lu, sample %d: %04x %04x\n",
                   (long) row, (long) pix, sample, w1, w2);
!           if (--stopondiff)
                       exit(1);
                break;
          }
--- 325,337 ----
       case 8:
                 printf("Scanline %lu, pixel %lu, sample %d: %02x %02x\n",
                   (long) row, (long) pix, sample, w1, w2);
!           if (--stopondiff == 0)
                          exit(1);
                break;
          case 16:
                printf("Scanline %lu, pixel %lu, sample %d: %04x %04x\n",
                   (long) row, (long) pix, sample, w1, w2);
!           if (--stopondiff == 0)
                          exit(1);
                break;
          }
***************
*** 352,358 ****
                                printf("%02x %02x\n", *p2, *cp1);
                       else
                            printf("%02x %02x\n", *cp1, *p2);
!                      if (--stopondiff)
                               exit(1);
                }
  }
--- 352,358 ----
                            printf("%02x %02x\n", *p2, *cp1);
                       else
                            printf("%02x %02x\n", *cp1, *p2);
!                      if (--stopondiff == 0)
                                  exit(1);
                }
  }