From 7212851e7cdbb8c8039cb7b9eee71e65a3677f5b Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Sat, 21 Apr 2001 00:29:43 +0000 Subject: [PATCH] Fix varbufprintf call in modstatdb_note(found when printf format warnings were enabled). --- ChangeLog | 5 +++++ lib/dbmodify.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 37584467..32852fa8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Apr 20 19:05:44 CDT 2001 Adam Heath + + * lib/dbmodify.c: Fix varbufprintf call in modstatdb_note(found when + printf format warnings were enabled). + Fri Apr 20 19:02:46 CDT 2001 Adam Heath * configure.in: New option, --with-Werror, to convert all warnings diff --git a/lib/dbmodify.c b/lib/dbmodify.c index 2cfe9407..9c259837 100644 --- a/lib/dbmodify.c +++ b/lib/dbmodify.c @@ -235,7 +235,7 @@ void modstatdb_note(struct pkginfo *pkg) { varbufinit(status); } else varbufreset(status); - r= varbufprintf(status, "status: %s: %s\n", pkg->name, statusinfos[pkg->status]); + r= varbufprintf(status, "status: %s: %s\n", pkg->name, statusinfos[pkg->status].name); while (pipef) { write(pipef->fd, status->buf, r); pipef= pipef->next; -- 2.39.5