[BusyBox-cvs] CVS update of busybox/libbb (dump.c)
Glenn McGrath
bug1 at codepoet.org
Fri Jul 23 01:35:42 UTC 2004
Date: Thursday, July 22, 2004 @ 19:35:42
Author: bug1
Path: /var/cvs/busybox/libbb
Modified: dump.c (1.12 -> 1.13)
Patch from Felipe Kellermann, "There is a call to printf using `*pr-cchar'
referencing a string and using a single char, when *p <= 0x1f."
Index: busybox/libbb/dump.c
diff -u busybox/libbb/dump.c:1.12 busybox/libbb/dump.c:1.13
--- busybox/libbb/dump.c:1.12 Sun May 2 02:38:53 2004
+++ busybox/libbb/dump.c Thu Jul 22 19:35:41 2004
@@ -499,7 +499,7 @@
/* 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");
More information about the busybox-cvs
mailing list