/* T13. Print predecessor chain from start of loop. */
while ((p = q) != NULL && (q = rpmteTSI(p)->tsi_chain) != NULL) {
char * dp;
- char buf[4096];
+ const char *nevra;
int msglvl = (rpmtsFlags(ts) & RPMTRANS_FLAG_DEPLOOPS)
? RPMLOG_WARNING : RPMLOG_DEBUG;
;
dp = zapRelation(q, p, requires, 1, &nzaps, msglvl);
/* Print next member of loop. */
- buf[0] = '\0';
- if (rpmteNEVRA(p) != NULL)
- (void) stpcpy(buf, rpmteNEVRA(p));
- rpmlog(msglvl, " %-40s %s\n", buf,
+ nevra = rpmteNEVRA(p);
+ rpmlog(msglvl, " %-40s %s\n", (nevra ? nevra : "???"),
(dp ? dp : "not found!?!"));
dp = _free(dp);