summaryrefslogtreecommitdiff
path: root/tools
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 /tools
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 'tools')
-rw-r--r--tools/debugedit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/debugedit.c b/tools/debugedit.c
index 6699c76f4..c298cd295 100644
--- a/tools/debugedit.c
+++ b/tools/debugedit.c
@@ -1413,9 +1413,9 @@ handle_build_id (DSO *dso, Elf_Data *build_id,
/* Now format the build ID bits in hex to print out. */
{
const uint8_t * id = (uint8_t *)build_id->d_buf + build_id_offset;
- char hex[build_id_size * 2 + 1];
- pgpHexCvt(hex, id, build_id_size);
+ char *hex = pgpHexStr(id, build_id_size);
puts (hex);
+ free(hex);
}
}