[PATCH] 64bits fix: head->width is a size_t, needs %zd format.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
---
lib/showpkg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/showpkg.c b/lib/showpkg.c
index 9025807..74e57c8 100644
--- a/lib/showpkg.c
+++ b/lib/showpkg.c
@@ -216,7 +216,7 @@ void show1package(const struct lstitem* head, struct pkginfo *pkg) {
ok=0;
if (head->width>0)
- snprintf(fmt,16,"%%%s%ds",
+ snprintf(fmt,16,"%%%s%zds",
((head->pad) ? "-" : ""), head->width);
else
strcpy(fmt, "%s");
--
1.5.5.1.295.gbeb1
Reply to: