summaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r--libbb/lineedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 2e16e6a0a..032da24e7 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -1552,7 +1552,7 @@ int FAST_FUNC read_line_input(const char *prompt, char *command, int maxsize, li
1552 vi_case(CTRL('U')|vbit:) 1552 vi_case(CTRL('U')|vbit:)
1553 /* Control-U -- Clear line before cursor */ 1553 /* Control-U -- Clear line before cursor */
1554 if (cursor) { 1554 if (cursor) {
1555 strcpy(command, command + cursor); 1555 overlapping_strcpy(command, command + cursor);
1556 command_len -= cursor; 1556 command_len -= cursor;
1557 redraw(cmdedit_y, command_len); 1557 redraw(cmdedit_y, command_len);
1558 } 1558 }