projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- don't free user-supplied string (via -e)
[oweals/busybox.git]
/
libbb
/
lineedit.c
diff --git
a/libbb/lineedit.c
b/libbb/lineedit.c
index 032da24e7ac36f8aa6451e0a0d446f735a0f98ee..3e16f642311c3e95c9488c6f5cfb4c3fac53326a 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 */