]> git.ipfire.org Git - thirdparty/coreutils.git/commit
stty: fix off by one column wrapping on output
authorPádraig Brady <P@draigBrady.com>
Sat, 31 Dec 2022 17:03:39 +0000 (17:03 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 31 Dec 2022 19:01:59 +0000 (19:01 +0000)
commitc9a21ec3173b93de4839e5ff9eddadb020431656
treeffa75643c1d3677533127e59a635cc054a636885
parent879d2180d6b58e7a83312681fbce9a1e841c2ae4
stty: fix off by one column wrapping on output

* src/stty.c (wrapf): Adjust the comparison by 1,
to account for the space we're adding.
* tests/misc/stty.sh: Add a test case.
* NEWS: Mention the fix.
Reported in https://bugs.debian.org/1027442
NEWS
src/stty.c
tests/misc/stty.sh