diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-06-07 13:17:52 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-06-07 13:17:52 +0300 |
commit | d4c04512a15733ebfababd42b67d957744e613b9 (patch) | |
tree | 4decf19c55842ffe807d689bff89cd6f9478cb96 /lib/headerfmt.c | |
parent | 5e40a2eb7723e0f812f25dc2d8bcdab845ade391 (diff) | |
download | rpm-d4c04512a15733ebfababd42b67d957744e613b9.tar.gz |
rpmtdCount() knows how to handle BIN types, use it..
Diffstat (limited to 'lib/headerfmt.c')
-rw-r--r-- | lib/headerfmt.c | 7 |
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) { |