From eeccb0a5eacb70b3ed594b704034ffd55f5e6b9e Mon Sep 17 00:00:00 2001 From: FRIGN Date: Mon, 26 Oct 2015 00:08:59 +0100 Subject: [PATCH] Fix od(1) output Of course, for right-justification we want no "+"'s in the output. --- od.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/od.c b/od.c index 8061c86..d04b3da 100644 --- a/od.c +++ b/od.c @@ -83,7 +83,7 @@ printchunk(unsigned char *s, unsigned char format, size_t len) { basefac <<= 8; } } - fmt[2] = big_endian ? '-' : '+'; + fmt[2] = big_endian ? '-' : ' '; fmt[6] = format; printf(fmt, (int)(3 * len + len - 1), res); }