comparison main.c @ 1533:3c77af6f81cc draft

Cosmetic tweak: no trailing spaces when ./toybox lists command names.
author Rob Landley <rob@landley.net>
date Sun, 26 Oct 2014 12:56:41 -0500
parents c51a4dbe5db7
children a35ea98b4972
comparison
equal deleted inserted replaced
1532:bf2c5216d726 1533:3c77af6f81cc
164 if (toys.argv[1]) { 164 if (toys.argv[1]) {
165 int j; 165 int j;
166 for (j=0; toy_paths[j]; j++) 166 for (j=0; toy_paths[j]; j++)
167 if (fl & (1<<j)) len += printf("%s", toy_paths[j]); 167 if (fl & (1<<j)) len += printf("%s", toy_paths[j]);
168 } 168 }
169 len += printf("%s ",toy_list[i].name); 169 len += printf("%s",toy_list[i].name);
170 if (len>65) { 170 if (++len > 65) len = 0;
171 xputc('\n'); 171 xputc(len ? ' ' : '\n');
172 len=0;
173 }
174 } 172 }
175 } 173 }
176 xputc('\n'); 174 xputc('\n');
177 } 175 }
178 176