summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorloogg <[email protected]>2019-05-29 20:14:53 +0800
committerGitHub <[email protected]>2019-05-29 20:14:53 +0800
commitb29154673e3bf5f0997e98ac20518ef9f874216e (patch)
tree297ff6231793c8ba2396c428d436cdb55efd783e /components
parent7494b40d6a04f6f840a19c8fdf6ef34fcdbe8694 (diff)
Update shell.c
Diffstat (limited to 'components')
-rw-r--r--components/finsh/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/finsh/shell.c b/components/finsh/shell.c
index 53dcd11c66..98a63bdbbf 100644
--- a/components/finsh/shell.c
+++ b/components/finsh/shell.c
@@ -309,8 +309,8 @@ static void finsh_wait_auth(void)
else if (ch == '\b' && cur_pos > 0)
{
/* backspace */
+ cur_pos--;
password[cur_pos] = '\0';
- cur_pos--;
rt_kprintf("\b \b");
}
else if (ch == '\r' || ch == '\n')