Fix od(1) output
Of course, for right-justification we want no "+"'s in the output.
This commit is contained in:
parent
d03baf1697
commit
eeccb0a5ea
2
od.c
2
od.c
|
@ -83,7 +83,7 @@ printchunk(unsigned char *s, unsigned char format, size_t len) {
|
||||||
basefac <<= 8;
|
basefac <<= 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt[2] = big_endian ? '-' : '+';
|
fmt[2] = big_endian ? '-' : ' ';
|
||||||
fmt[6] = format;
|
fmt[6] = format;
|
||||||
printf(fmt, (int)(3 * len + len - 1), res);
|
printf(fmt, (int)(3 * len + len - 1), res);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user