projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e48e6f8
)
pstree: tiny shrink
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 5 Dec 2010 15:05:03 +0000
(16:05 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sun, 5 Dec 2010 15:05:03 +0000
(16:05 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/pstree.c
patch
|
blob
|
history
diff --git
a/procps/pstree.c
b/procps/pstree.c
index 25fb65d79c562d8e7912012a008bdc1129347081..7e127739cb7d386ef9246ac8f5db9dc0e142e8cf 100644
(file)
--- a/
procps/pstree.c
+++ b/
procps/pstree.c
@@
-111,10
+111,11
@@
static void maybe_free_buffers(void)
static void out_char(char c)
{
G.cur_x++;
+ if (G.cur_x > G.output_width)
+ return;
if (G.cur_x == G.output_width)
c = '+';
- if (G.cur_x <= G.output_width)
- putchar(c);
+ putchar(c);
}
/* NB: this function is never called with "bad" chars