aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2004-03-05 05:47:19 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2004-03-05 05:47:19 +0000
commitd2b860fecb7353a8f809e1841c299160f4c6c6b9 (patch)
tree7b9c6c732d197e7e4fd82b1f8b82ec7da8373283
parentbbf2ce36d841fe53689516f6e52751e5f59ad393 (diff)
downloadbusybox-w32-d2b860fecb7353a8f809e1841c299160f4c6c6b9.tar.gz
busybox-w32-d2b860fecb7353a8f809e1841c299160f4c6c6b9.tar.bz2
busybox-w32-d2b860fecb7353a8f809e1841c299160f4c6c6b9.zip
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.
-rw-r--r--libbb/dump.c2
1 files changed, 1 insertions, 1 deletions
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)
650 for (pr = endfu->nextpr; pr; pr = pr->nextpr) { 650 for (pr = endfu->nextpr; pr; pr = pr->nextpr) {
651 switch (pr->flags) { 651 switch (pr->flags) {
652 case F_ADDRESS: 652 case F_ADDRESS:
653 (void) printf(pr->fmt, eaddress); 653 (void) printf(pr->fmt, (unsigned int) eaddress);
654 break; 654 break;
655 case F_TEXT: 655 case F_TEXT:
656 (void) printf(pr->fmt); 656 (void) printf(pr->fmt);