The new two-array helper macro works in this context too.
Note: array_copy doesn't have any protection currently, it isn't
obvious how to wrap that with some safety without breaking interfaces.
It only seems to have one internal user, lib/aqueue.
Signed-off-by: Phil Carmody <phil@dovecot.fi>
buffer_append_buf(dest_array->buffer, src_array->buffer, 0, (size_t)-1);
}
#define array_append_array(dest_array, src_array) \
- array_append_array_i(&(dest_array)->arr, &(src_array)->arr)
+ array_append_array_i(&(dest_array)->arr + ARRAY_TYPES_CHECK(dest_array, src_array), \
+ &(src_array)->arr)
static inline void
array_insert_i(struct array *array, unsigned int idx,