commit eeccb0a5eacb70b3ed594b704034ffd55f5e6b9e
Author: FRIGN <[email protected]>
AuthorDate: Mon Oct 26 00:08:59 2015 +0100
Commit: sin <[email protected]>
CommitDate: Mon Oct 26 11:55:41 2015 +0000
Fix od(1) output
Of course, for right-justification we want no "+"'s in the output.
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);
}