]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ls: fix off by one error when determining max display columns
authorPádraig Brady <P@draigBrady.com>
Wed, 21 Oct 2015 12:57:41 +0000 (13:57 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 21 Oct 2015 15:13:57 +0000 (16:13 +0100)
commite71be1292b92b244d065873fae5a17d5e1f0a16c
treece77fb2219c8a3fce9bda19a11068c53bd025d4b
parent0e997681d4497fe9ba6db035909e413a5af050a9
ls: fix off by one error when determining max display columns

* src/ls.c (main): Account for the first column not including
a separator when calculating max_idx.
* tests/ls/w-option.sh: Add a test case.
* NEWS: Mention the bug fix.
NEWS
src/ls.c
tests/ls/w-option.sh