diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/finsh/shell.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 1fc2bf7bcd..c06b688ed3 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -529,7 +529,7 @@ void finsh_thread_entry(void *parameter) /* copy the history command */ rt_memcpy(shell->line, &shell->cmd_history[shell->current_history][0], FINSH_CMD_SIZE); - shell->line_curpos = shell->line_position = strlen(shell->line); + shell->line_curpos = shell->line_position = (rt_uint16_t)strlen(shell->line); shell_handle_history(shell); #endif continue; @@ -551,7 +551,7 @@ void finsh_thread_entry(void *parameter) rt_memcpy(shell->line, &shell->cmd_history[shell->current_history][0], FINSH_CMD_SIZE); - shell->line_curpos = shell->line_position = strlen(shell->line); + shell->line_curpos = shell->line_position = (rt_uint16_t)strlen(shell->line); shell_handle_history(shell); #endif continue; @@ -591,7 +591,7 @@ void finsh_thread_entry(void *parameter) /* auto complete */ shell_auto_complete(&shell->line[0]); /* re-calculate position */ - shell->line_curpos = shell->line_position = strlen(shell->line); + shell->line_curpos = shell->line_position = (rt_uint16_t)strlen(shell->line); continue; } |
