projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90397b2
)
Cosmetic tweak: no trailing spaces when ./toybox lists command names.
author
Rob Landley
<rob@landley.net>
Sun, 26 Oct 2014 17:56:41 +0000
(12:56 -0500)
committer
Rob Landley
<rob@landley.net>
Sun, 26 Oct 2014 17:56:41 +0000
(12:56 -0500)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
c3577b6
..
ed6706a
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-166,11
+166,9
@@
list:
for (j=0; toy_paths[j]; j++)
if (fl & (1<<j)) len += printf("%s", toy_paths[j]);
}
- len += printf("%s ",toy_list[i].name);
- if (len>65) {
- xputc('\n');
- len=0;
- }
+ len += printf("%s",toy_list[i].name);
+ if (++len > 65) len = 0;
+ xputc(len ? ' ' : '\n');
}
}
xputc('\n');