OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bb5221
)
Fix another segfault in ls -C when terminal size is 0x0.
author
Rob Landley
<rob@landley.net>
Sun, 30 Jun 2013 06:26:56 +0000
(
01:26
-0500)
committer
Rob Landley
<rob@landley.net>
Sun, 30 Jun 2013 06:26:56 +0000
(
01:26
-0500)
toys/posix/ls.c
patch
|
blob
|
history
diff --git
a/toys/posix/ls.c
b/toys/posix/ls.c
index
caabe7d
..
2f066a7
100644
(file)
--- a/
toys/posix/ls.c
+++ b/
toys/posix/ls.c
@@
-375,7
+375,7
@@
static void listfiles(int dirfd, struct dirtree *indir)
// 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);
}
}