forked from Imagelibrary/rtems
2009-01-23 Chris Johns <chrisj@rtems.org>
* libmisc/shell/shell.c: Fix command line parsing of valid characters.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2009-01-23 Chris Johns <chrisj@rtems.org>
|
||||
|
||||
* libmisc/shell/shell.c: Fix command line parsing of valid
|
||||
characters.
|
||||
|
||||
2009-01-21 Nickolay Kolchin <nbkolchin@gmail.com>
|
||||
Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
|
||||
@@ -311,7 +311,6 @@ int rtems_shell_line_editor(
|
||||
break;
|
||||
|
||||
case '\b':
|
||||
case '\x7e':
|
||||
case '\x7f':
|
||||
if (col > 0)
|
||||
{
|
||||
@@ -353,7 +352,7 @@ int rtems_shell_line_editor(
|
||||
return cmd;
|
||||
|
||||
default:
|
||||
if ((col < (size - 1)) && (c >= ' ') && (c <= 'z')) {
|
||||
if ((col < (size - 1)) && (c >= ' ') && (c <= '~')) {
|
||||
int end = strlen (line);
|
||||
if (inserting && (col < end) && (end < size)) {
|
||||
int ch, bs;
|
||||
|
||||
Reference in New Issue
Block a user