From ddfb1e8208f689aeb174a8f579e45e09dc32d4ea Mon Sep 17 00:00:00 2001 From: bug1 Date: Fri, 23 Jul 2004 01:35:41 +0000 Subject: Patch from Felipe Kellermann, "There is a call to printf using `*pr-cchar' referencing a string and using a single char, when *p <= 0x1f." git-svn-id: svn://busybox.net/trunk/busybox@9003 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb') 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) /* 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"); -- cgit v1.2.3-55-g6feb