summaryrefslogtreecommitdiffhomepage
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)
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)
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);