projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f293b9
)
another overlapping_strcpy
author
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 22 Jul 2008 20:25:24 +0000
(20:25 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 22 Jul 2008 20:25:24 +0000
(20:25 -0000)
libbb/lineedit.c
patch
|
blob
|
history
diff --git
a/libbb/lineedit.c
b/libbb/lineedit.c
index
032da24
..
3e16f64
100644
(file)
--- a/
libbb/lineedit.c
+++ b/
libbb/lineedit.c
@@
-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 */