The following commit has been merged in the master branch:
commit 8ad47fe55ea64f694e53da06dda066a0eb22bb29
Author: Pierre Habouzit <[EMAIL PROTECTED]>
Date:   Sun May 11 20:45:02 2008 +0200

    64bits fix: head->width is a size_t, needs %zd format.
    
    * lib/showpkg.c (show1package): Use %zd instead of %d in sprintf()
    call with a size_t parameter.

diff --git a/ChangeLog b/ChangeLog
index 699d4b1..60034cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-05-11  Pierre Habouzit  <[EMAIL PROTECTED]>
 
+       * lib/showpkg.c (show1package): Use %zd instead of %d in sprintf()
+       call with a size_t parameter.
+
+2008-05-11  Pierre Habouzit  <[EMAIL PROTECTED]>
+
        * scripts/update-alternatives.pl: add a --query option that works like
        --display but outputs a machine parseable rfc822-like output.
        * man/update-alternatives.8: document that new option, and the
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");

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to