]> err.no Git - dpkg/commitdiff
64bits fix: head->width is a size_t, needs %zd format.
authorPierre Habouzit <madcoder@debian.org>
Sun, 11 May 2008 18:45:02 +0000 (20:45 +0200)
committerRaphael Hertzog <hertzog@debian.org>
Sun, 11 May 2008 19:59:31 +0000 (21:59 +0200)
* lib/showpkg.c (show1package): Use %zd instead of %d in sprintf()
call with a size_t parameter.

ChangeLog
lib/showpkg.c

index 699d4b101acd95ea93630a44fd37318a32095753..60034cb9c4ec7379d8b5c92f2872d420043276e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 9025807a2f0cbbaef7e5c27433a48749a1cce223..74e57c8cf8513bf2b6e68f7fa0e3d7fc21f2f33f 100644 (file)
@@ -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");