ps output redirection problem
Denis Vlasenko
vda.linux at googlemail.com
Thu Mar 29 12:33:04 PDT 2007
On Thursday 29 March 2007 11:04, Ignacio García Pérez wrote:
> Thanks for the hint, though I already found out.
In fact, I learned that from your excellent report.
> IMHO my fix is better.
- printf("%.*s\n", terminal_width, buffer);
+ if (terminal_width < buffer_width) buffer[terminal_width] = 0;
+ printf("%s\n", buffer);
It is also bigger. For busybox we try to use smaller code.
--
vda
More information about the busybox
mailing list