projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4359623
)
Patch from Felipe Kellermann, "There is a call to printf using `*pr-cchar'
author
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 23 Jul 2004 01:35:41 +0000
(
01:35
-0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 23 Jul 2004 01:35:41 +0000
(
01:35
-0000)
referencing a string and using a single char, when *p <= 0x1f."
libbb/dump.c
patch
|
blob
|
history
diff --git
a/libbb/dump.c
b/libbb/dump.c
index 30f69830bac149ca8d34973fdc07de59a22d9fe2..98f004ff6acce0643d560c70031ee31bd1d374dd 100644
(file)
--- 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");