summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath2004-07-23 01:35:41 +0000
committerGlenn L McGrath2004-07-23 01:35:41 +0000
commiteeb06bf230103440f96e4d42d869f2f3a70d869a (patch)
tree1fa9806be6c8c5be28c433a1cc2616c195c6599e
parent435962327a935e34402b8800d488a654cddd06c6 (diff)
downloadbusybox-eeb06bf230103440f96e4d42d869f2f3a70d869a.zip
busybox-eeb06bf230103440f96e4d42d869f2f3a70d869a.tar.gz
Patch from Felipe Kellermann, "There is a call to printf using `*pr-cchar'
referencing a string and using a single char, when *p <= 0x1f."
-rw-r--r--libbb/dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/dump.c b/libbb/dump.c
index 30f6983..98f004f 100644
--- a/libbb/dump.c
+++ b/libbb/dump.c
@@ -499,7 +499,7 @@ static void conv_u(PR * pr, u_char * p)
/* od used nl, not lf */
if (*p <= 0x1f) {
*pr->cchar = 's';
- printf(pr->fmt, list[4 * (int)(*p)]);
+ printf(pr->fmt, list + (4 * (int)*p));
} else if (*p == 0x7f) {
*pr->cchar = 's';
printf(pr->fmt, "del");