diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/finsh/shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 98a63bdbbf..3a02e24c2e 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -309,7 +309,7 @@ static void finsh_wait_auth(void) else if (ch == '\b' && cur_pos > 0) { /* backspace */ - cur_pos--; + cur_pos--; password[cur_pos] = '\0'; rt_kprintf("\b \b"); } |
