[PATCH 1/2] od: fix -O

David Leonard d+busybox at adaptive-enterprises.com
Thu May 11 13:59:04 UTC 2023


od with option -O (4-byte octal) was incorrectly displaying 2-byte
decimal when built without CONFIG_DESKTOP
---
  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;
-- 
2.34.1



More information about the busybox mailing list