summaryrefslogtreecommitdiff
path: root/rpmio/rpmpgp.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-04-07 13:26:46 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-04-07 13:26:46 +0300
commit8909c054344834eb45f2b09c0abfcfa1be214ec4 (patch)
treec3e3bb7c994e71e1318a60cfd134be664753c1c9 /rpmio/rpmpgp.h
parenta3a1a45c5131fd1dd885cd73bb9f6a7ac1ddbfba (diff)
downloadrpm-8909c054344834eb45f2b09c0abfcfa1be214ec4.tar.gz
rpm-8909c054344834eb45f2b09c0abfcfa1be214ec4.tar.bz2
rpm-8909c054344834eb45f2b09c0abfcfa1be214ec4.zip
Minimally convert all pgpHexCvt() users to use pgpHexStr() instead
Diffstat (limited to 'rpmio/rpmpgp.h')
-rw-r--r--rpmio/rpmpgp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpmio/rpmpgp.h b/rpmio/rpmpgp.h
index 96e44ca8a..05e1450cd 100644
--- a/rpmio/rpmpgp.h
+++ b/rpmio/rpmpgp.h
@@ -1066,9 +1066,9 @@ const char * pgpMpiStr(const uint8_t *p)
{
static char prbuf[8*BUFSIZ]; /* XXX ick */
char *t = prbuf;
- sprintf(t, "[%4u]: ", pgpGrab(p, (size_t) 2));
- t += strlen(t);
- t = pgpHexCvt(t, p+2, pgpMpiLen(p)-2);
+ char *hex = pgpHexStr(p+2, pgpMpiLen(p)-2);
+ sprintf(t, "[%4u]: %s", pgpGrab(p, (size_t) 2), hex);
+ free(hex);
return prbuf;
}