shell/shell.c: Fix an implicit type cast

With some compiler warnings enabled, the implicit cast may trigger
a compiler warning. The explicit cast avoids this.
This commit is contained in:
Frank Kühndel
2020-10-12 17:11:18 +02:00
committed by Sebastian Huber
parent 0a761a58c9
commit 2361b2c8cb

View File

@@ -620,7 +620,9 @@ static int rtems_shell_line_editor(
case 21: /* Control-U */
if (col > 0)
{
int clen = strlen (line);
/* strlen() returns size_t but fprintf("%*...") below requires
* int! */
int clen = (int) strlen (line);
int bs;
strcpy (line, line + col);