[hackers] [sbase] Fix od(1) output || FRIGN

From: <git_AT_suckless.org>
Date: Mon, 26 Oct 2015 12:55:51 +0100 (CET)

commit eeccb0a5eacb70b3ed594b704034ffd55f5e6b9e
Author: FRIGN <dev_AT_frign.de>
AuthorDate: Mon Oct 26 00:08:59 2015 +0100
Commit: sin <sin_AT_2f30.org>
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
_AT_@ -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);
         }
Received on Mon Oct 26 2015 - 12:55:51 CET

This archive was generated by hypermail 2.3.0 : Mon Oct 26 2015 - 13:00:22 CET