From: root Date: Thu, 15 Aug 1996 13:46:20 +0000 (+0000) Subject: tiny bug X-Git-Tag: tznext/4.11.0.1.tizen20130304~11005 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=315e01fd580192ff79ad8453e3432a1536825941;p=tools%2Flibrpm-tizen.git tiny bug CVS patchset: 955 CVS date: 1996/08/15 13:46:20 --- diff --git a/lib/header.c b/lib/header.c index 86fc7a7..ff66959 100644 --- a/lib/header.c +++ b/lib/header.c @@ -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);