diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/cmdedit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c index 56b789ab6..3380dffe9 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c | |||
@@ -782,8 +782,8 @@ static int match_compare(const void *a, const void *b) | |||
782 | #define QUOT (UCHAR_MAX+1) | 782 | #define QUOT (UCHAR_MAX+1) |
783 | 783 | ||
784 | #define collapse_pos(is, in) { \ | 784 | #define collapse_pos(is, in) { \ |
785 | memcpy(int_buf+(is), int_buf+(in), (BUFSIZ+1-(is)-(in))*sizeof(int)); \ | 785 | memmove(int_buf+(is), int_buf+(in), (BUFSIZ+1-(is)-(in))*sizeof(int)); \ |
786 | memcpy(pos_buf+(is), pos_buf+(in), (BUFSIZ+1-(is)-(in))*sizeof(int)); } | 786 | memmove(pos_buf+(is), pos_buf+(in), (BUFSIZ+1-(is)-(in))*sizeof(int)); } |
787 | 787 | ||
788 | static int find_match(char *matchBuf, int *len_with_quotes) | 788 | static int find_match(char *matchBuf, int *len_with_quotes) |
789 | { | 789 | { |