another overlapping_strcpy
authorDenis Vlasenko <vda.linux@googlemail.com>
Tue, 22 Jul 2008 20:25:24 +0000 (20:25 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Tue, 22 Jul 2008 20:25:24 +0000 (20:25 -0000)
libbb/lineedit.c

index 032da24..3e16f64 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 */