FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Debian > Debian dpkg

 
 
LinkBack Thread Tools
 
Old 05-11-2008, 06:45 PM
Pierre Habouzit
 
Default 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


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 05:18 PM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org