Merge pull request #2740 from loogg/master

Update shell.c
This commit is contained in:
Bernard Xiong 2019-05-30 08:37:19 +08:00 committed by GitHub
commit 91c858ead2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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')