From: Glenn L McGrath Date: Fri, 5 Mar 2004 05:47:19 +0000 (-0000) Subject: Patch from Vernon Sauder. X-Git-Tag: 1_00_pre9~97 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d2b860fecb7353a8f809e1841c299160f4c6c6b9;p=oweals%2Fbusybox.git Patch from Vernon Sauder. The off_t type is not a consistent size; it depends on the kernel options (something about large file support). Therefore, the format string for printing an address is not always the same. --- diff --git a/libbb/dump.c b/libbb/dump.c index f071ea09c..5046b926b 100644 --- a/libbb/dump.c +++ b/libbb/dump.c @@ -650,7 +650,7 @@ static void display(void) for (pr = endfu->nextpr; pr; pr = pr->nextpr) { switch (pr->flags) { case F_ADDRESS: - (void) printf(pr->fmt, eaddress); + (void) printf(pr->fmt, (unsigned int) eaddress); break; case F_TEXT: (void) printf(pr->fmt);