aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-03-20 14:31:15 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2002-03-20 14:31:15 +0000
commit526d6bbf49d72e4fc5a36f19d593f71a32b50ef0 (patch)
treeacf535945e56f7d18e41334a477c44dc2fbddd31 /shell
parent903bfa1a084c1cef32a68bb39c99cc7be130da95 (diff)
downloadbusybox-w32-526d6bbf49d72e4fc5a36f19d593f71a32b50ef0.tar.gz
busybox-w32-526d6bbf49d72e4fc5a36f19d593f71a32b50ef0.tar.bz2
busybox-w32-526d6bbf49d72e4fc5a36f19d593f71a32b50ef0.zip
Patch from vodz to fix a potential segfault
git-svn-id: svn://busybox.net/trunk/busybox@4444 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r--shell/cmdedit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/cmdedit.c b/shell/cmdedit.c
index d4d6264d0..3810c230a 100644
--- a/shell/cmdedit.c
+++ b/shell/cmdedit.c
@@ -799,8 +799,8 @@ static int match_compare(const void *a, const void *b)
799#define QUOT (UCHAR_MAX+1) 799#define QUOT (UCHAR_MAX+1)
800 800
801#define collapse_pos(is, in) { \ 801#define collapse_pos(is, in) { \
802 memcpy(int_buf+is, int_buf+in, (BUFSIZ+1-is-in)*sizeof(int)); \ 802 memcpy(int_buf+(is), int_buf+(in), (BUFSIZ+1-(is)-(in))*sizeof(int)); \
803 memcpy(pos_buf+is, pos_buf+in, (BUFSIZ+1-is-in)*sizeof(int)); } 803 memcpy(pos_buf+(is), pos_buf+(in), (BUFSIZ+1-(is)-(in))*sizeof(int)); }
804 804
805static int find_match(char *matchBuf, int *len_with_quotes) 805static int find_match(char *matchBuf, int *len_with_quotes)
806{ 806{