Make shescapeFormat() to accept any numeric type

This commit is contained in:
Panu Matilainen 2008-11-17 12:34:22 +02:00
parent 2b3380aa34
commit f31b790c31
1 changed files with 3 additions and 3 deletions

View File

@ -163,9 +163,9 @@ static char * shescapeFormat(rpmtd td, char * formatPrefix)
{
char * result = NULL, * dst, * src;
if (rpmtdType(td) == RPM_INT32_TYPE) {
strcat(formatPrefix, "d");
rasprintf(&result, formatPrefix, *rpmtdGetUint32(td));
if (rpmtdClass(td) == RPM_NUMERIC_CLASS) {
strcat(formatPrefix, PRIu64);
rasprintf(&result, formatPrefix, rpmtdGetNumber(td));
} else {
char *buf = NULL;
strcat(formatPrefix, "s");