mirror of
https://git.busybox.net/busybox
synced 2026-01-31 08:34:44 +00:00
Patch from vodz to fix a potential segfault
This commit is contained in:
parent
900c24dc4e
commit
889a301a0c
1 changed files with 2 additions and 2 deletions
|
|
@ -799,8 +799,8 @@ static int match_compare(const void *a, const void *b)
|
|||
#define QUOT (UCHAR_MAX+1)
|
||||
|
||||
#define collapse_pos(is, in) { \
|
||||
memcpy(int_buf+is, int_buf+in, (BUFSIZ+1-is-in)*sizeof(int)); \
|
||||
memcpy(pos_buf+is, pos_buf+in, (BUFSIZ+1-is-in)*sizeof(int)); }
|
||||
memcpy(int_buf+(is), int_buf+(in), (BUFSIZ+1-(is)-(in))*sizeof(int)); \
|
||||
memcpy(pos_buf+(is), pos_buf+(in), (BUFSIZ+1-(is)-(in))*sizeof(int)); }
|
||||
|
||||
static int find_match(char *matchBuf, int *len_with_quotes)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue