aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-22 14:04:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-22 14:04:27 +0000
commit35d4da0fb5884236fa7a131a13416268239c9e69 (patch)
tree1598327194a13be915980de0cb8be6a84e5c362c /libbb
parent85629f08bcea5d4a44b6d511422fd608bbc3fc45 (diff)
downloadbusybox-35d4da0fb5884236fa7a131a13416268239c9e69.tar.gz
exterminate u_intXXX.
fix ping6 buglet (memset is too short), minor sync between ping and ping6
Diffstat (limited to 'libbb')
-rw-r--r--libbb/lineedit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index e62975db3..2c849eb74 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -171,7 +171,7 @@ static void input_backward(unsigned num)
if (cmdedit_x >= num) {
cmdedit_x -= num;
if (num <= 4) {
- do putchar('\b'); while (--num);
+ printf("\b\b\b\b" + (4-num));
return;
}
printf("\033[%uD", num);
@@ -183,7 +183,7 @@ static void input_backward(unsigned num)
count_y = 1 + (num / cmdedit_termw);
cmdedit_y -= count_y;
cmdedit_x = cmdedit_termw * count_y - num;
- /* go to 1st col; go up; go to correct column */
+ /* go to 1st column; go up; go to correct column */
printf("\r" "\033[%dA" "\033[%dC", count_y, cmdedit_x);
}