blocktest: fix segfault on vectored read

This commit is contained in:
Arne Welzel 2012-09-10 11:32:38 +02:00 committed by David van Moolenbroek
parent 66ef912042
commit 4fbdf1946d

View file

@ -857,7 +857,7 @@ static void vector_and_large_sub(size_t small_size)
* has dword-sized guards before each chunk and after the last chunk.
* SPTR(n) points to the start of the nth small chunk.
*/
#define SPTR(n) (buf2_ptr + (n) * (sizeof(u32_t) + small_size))
#define SPTR(n) (buf2_ptr + sizeof(u32_t) + (n) * (sizeof(u32_t) + small_size))
#define LPTR(n) (buf_ptr + sizeof(u32_t) + small_size * (n))
/* Write one large chunk, if writing is allowed. */