Mercurial > hg > toybox
changeset 937:871c68a35e95
Fix another segfault in ls -C when terminal size is 0x0.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 30 Jun 2013 01:26:56 -0500 |
parents | 859a93658467 |
children | 812e8c5d026f |
files | toys/posix/ls.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/toys/posix/ls.c Fri Jun 28 02:11:48 2013 -0500 +++ b/toys/posix/ls.c Sun Jun 30 01:26:56 2013 -0500 @@ -375,7 +375,7 @@ // Pad columns if (flags & (FLAG_C|FLAG_x)) { curcol = colsizes[curcol] - *len; - if (curcol >= 0) xprintf("%s", toybuf+255-curcol); + if (curcol < 255) xprintf("%s", toybuf+255-curcol); } }