diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2004-07-23 01:35:41 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2004-07-23 01:35:41 +0000 |
commit | eeb06bf230103440f96e4d42d869f2f3a70d869a (patch) | |
tree | 1fa9806be6c8c5be28c433a1cc2616c195c6599e | |
parent | 435962327a935e34402b8800d488a654cddd06c6 (diff) | |
download | busybox-w32-eeb06bf230103440f96e4d42d869f2f3a70d869a.tar.gz busybox-w32-eeb06bf230103440f96e4d42d869f2f3a70d869a.tar.bz2 busybox-w32-eeb06bf230103440f96e4d42d869f2f3a70d869a.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/dump.c b/libbb/dump.c index 30f69830b..98f004ff6 100644 --- a/libbb/dump.c +++ b/libbb/dump.c | |||
@@ -499,7 +499,7 @@ static void conv_u(PR * pr, u_char * p) | |||
499 | /* od used nl, not lf */ | 499 | /* od used nl, not lf */ |
500 | if (*p <= 0x1f) { | 500 | if (*p <= 0x1f) { |
501 | *pr->cchar = 's'; | 501 | *pr->cchar = 's'; |
502 | printf(pr->fmt, list[4 * (int)(*p)]); | 502 | printf(pr->fmt, list + (4 * (int)*p)); |
503 | } else if (*p == 0x7f) { | 503 | } else if (*p == 0x7f) { |
504 | *pr->cchar = 's'; | 504 | *pr->cchar = 's'; |
505 | printf(pr->fmt, "del"); | 505 | printf(pr->fmt, "del"); |