summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-05-30 08:37:19 +0800
committerGitHub <[email protected]>2019-05-30 08:37:19 +0800
commit91c858ead231bdef64478f59a0fe3b43128be21b (patch)
treee4f23356cbf68c45872210ef584803c4d127830a /components
parent36219d61bd26f8fb46e19c86aa8fd1bd715c0ddf (diff)
parent52d1e51e3e4e25fcf8460af0bc65532ed647321c (diff)
Merge pull request #2740 from loogg/master
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..3a02e24c2e 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 */
- password[cur_pos] = '\0';
cur_pos--;
+ password[cur_pos] = '\0';
rt_kprintf("\b \b");
}
else if (ch == '\r' || ch == '\n')