const char * str;
int32_t * i32p;
} body;
- char numbuf[32];
+ char *numbuf = NULL;
rpmTagType type;
for (tagm = tagMacros; tagm->macroname != NULL; tagm++) {
continue;
switch (type) {
case RPM_INT32_TYPE:
- sprintf(numbuf, "%d", *body.i32p);
+ rasprintf(&numbuf, "%d", *body.i32p);
addMacro(NULL, tagm->macroname, NULL, numbuf, -1);
+ numbuf = _free(numbuf);
break;
case RPM_STRING_TYPE:
addMacro(NULL, tagm->macroname, NULL, body.str, -1);
mi = rpmdbFreeIterator(mi);
if (ix >= 0) {
- char hnum[32];
- sprintf(hnum, "h#%d", hx);
- pubkeysource = xstrdup(hnum);
+ rasprintf(&pubkeysource, "h#%d", hx);
} else {
ts->pkpkt = _free(ts->pkpkt);
ts->pkpktlen = 0;