[git commit] od: fix -O

Denys Vlasenko vda.linux at googlemail.com
Thu May 25 13:32:03 UTC 2023


commit: https://git.busybox.net/busybox/commit/?id=2bda790fd14adb80820643198bb1e96e4be73571
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

od with option -O (4-byte octal) was incorrectly displaying 2-byte
decimal when built without CONFIG_DESKTOP

Signed-off-by: David Leonard <d+busybox at adaptive-enterprises.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 coreutils/od.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/coreutils/od.c b/coreutils/od.c
index 6f22331e0..dcf1bd6f6 100644
--- a/coreutils/od.c
+++ b/coreutils/od.c
@@ -166,7 +166,7 @@ static const char od_o2si[] ALIGN1 = {
 	0, 1, 2, 3, 5,
 	4, 6, 6, 7, 8,
 	9, 0xa, 0xb, 0xa, 0xa,
-	0xb, 1, 8, 9,
+	0xc, 1, 8, 9,
 };
 
 int od_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;


More information about the busybox-cvs mailing list