- don't free user-supplied string (via -e)
[oweals/busybox.git] / libbb / lineedit.c
index 032da24e7ac36f8aa6451e0a0d446f735a0f98ee..3e16f642311c3e95c9488c6f5cfb4c3fac53326a 100644 (file)
@@ -345,7 +345,7 @@ static void input_delete(int save)
        }
 #endif
 
-       strcpy(command_ps + j, command_ps + j + 1);
+       overlapping_strcpy(command_ps + j, command_ps + j + 1);
        command_len--;
        input_end();                    /* rewrite new line */
        cmdedit_set_out_char(' ');      /* erase char */