diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-10-20 18:54:36 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-10-20 18:57:02 +0200 |
commit | dac5b8314236338963877903cba3d7edfbfc9c58 (patch) | |
tree | 5e7ce92407b9079b4e49e728f28f8a7c6311999c /util-linux | |
parent | 085f19cdffd653013b1483c08851ecc35cdd818e (diff) | |
download | busybox-dac5b8314236338963877903cba3d7edfbfc9c58.tar.gz |
xxd: fix printing of trailing spaces
function old new delta
bb_dump_dump 1497 1523 +26
xxd_main 459 466 +7
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 33/0) Total: 33 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/hexdump_xxd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util-linux/hexdump_xxd.c b/util-linux/hexdump_xxd.c index 6cf6d0297..f2d1ecb2c 100644 --- a/util-linux/hexdump_xxd.c +++ b/util-linux/hexdump_xxd.c @@ -141,6 +141,7 @@ int xxd_main(int argc UNUSED_PARAM, char **argv) bb_dump_add(dumper, buf); } else { bb_dump_add(dumper, "\"\n\""); + dumper->eofstring = "\n"; } return bb_dump_dump(dumper, argv); |