summaryrefslogtreecommitdiff
path: root/lib/headerfmt.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-06-07 13:17:52 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-06-07 13:17:52 +0300
commitd4c04512a15733ebfababd42b67d957744e613b9 (patch)
tree4decf19c55842ffe807d689bff89cd6f9478cb96 /lib/headerfmt.c
parent5e40a2eb7723e0f812f25dc2d8bcdab845ade391 (diff)
downloadrpm-d4c04512a15733ebfababd42b67d957744e613b9.tar.gz
rpmtdCount() knows how to handle BIN types, use it..
Diffstat (limited to 'lib/headerfmt.c')
-rw-r--r--lib/headerfmt.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/headerfmt.c b/lib/headerfmt.c
index 9766a70f4..bc6160142 100644
--- a/lib/headerfmt.c
+++ b/lib/headerfmt.c
@@ -741,12 +741,7 @@ static char * singleSprintf(headerSprintfArgs hsa, sprintfToken token,
}
found = 1;
-
- if (td->type == RPM_BIN_TYPE) {
- count = 1; /* XXX count abused as no. of bytes. */
- } else {
- count = td->count;
- }
+ count = rpmtdCount(td);
if (numElements > 1 && count != numElements)
switch (td->type) {