* lib/showpkg.c (show1package): Use %zd instead of %d in sprintf() call with a size_t parameter.
@@ -1,3 +1,8 @@
+2008-05-11 Pierre Habouzit <madcoder@debian.org>
+
+ * lib/showpkg.c (show1package): Use %zd instead of %d in sprintf()
+ call with a size_t parameter.
2008-05-11 Pierre Habouzit <madcoder@debian.org>
* scripts/update-alternatives.pl: add a --query option that works like
@@ -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");