tiny bug
authorroot <devnull@localhost>
Thu, 15 Aug 1996 13:46:20 +0000 (13:46 +0000)
committerroot <devnull@localhost>
Thu, 15 Aug 1996 13:46:20 +0000 (13:46 +0000)
CVS patchset: 955
CVS date: 1996/08/15 13:46:20

lib/header.c

index 86fc7a7..ff66959 100644 (file)
@@ -559,7 +559,7 @@ void dumpHeader(Header h, FILE * f, int flags)
                }
                break;
            case BIN_TYPE:
-             while (c) {
+             while (c > 0) {
                  fprintf(f, "       Data: %.3d ", ct);
                  while (c--) {
                      fprintf(f, "%02x ", (unsigned char) *(int_8 *)dp);