diff options
| -rw-r--r-- | scripts/kconfig/nconf.gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/nconf.gui.c b/scripts/kconfig/nconf.gui.c index d3af04e95288..3ce2a7c0bda6 100644 --- a/scripts/kconfig/nconf.gui.c +++ b/scripts/kconfig/nconf.gui.c | |||
| @@ -457,7 +457,7 @@ int dialog_inputbox(WINDOW *main_window, | |||
| 457 | /* insert the char at the proper position */ | 457 | /* insert the char at the proper position */ |
| 458 | memmove(&result[cursor_position+1], | 458 | memmove(&result[cursor_position+1], |
| 459 | &result[cursor_position], | 459 | &result[cursor_position], |
| 460 | len+1); | 460 | len-cursor_position+1); |
| 461 | result[cursor_position] = res; | 461 | result[cursor_position] = res; |
| 462 | cursor_position++; | 462 | cursor_position++; |
| 463 | } else { | 463 | } else { |
