chomp should only remove the newline if it occurs at the end of the input.
authorMatt Kraai <kraai@debian.org>
Wed, 2 Jan 2002 18:51:23 +0000 (18:51 -0000)
committerMatt Kraai <kraai@debian.org>
Wed, 2 Jan 2002 18:51:23 +0000 (18:51 -0000)
commit0733e840bd1f94eee6a07f2a1986e29c9ddfe20c
tree2476ab020f6664d69f247bfef800d50e05a983b0
parentd21735de2d7380d96cd42458c6d9775143abe6ea
chomp should only remove the newline if it occurs at the end of the input.
This was caught by the test suite (in sed/sed-aic-commands).

* libbb/chomp.c: Revert to revision 1.5.
libbb/chomp.c