Fix buffer overflow in test program

This commit is contained in:
Johan Wikman
2017-10-05 15:15:55 +03:00
parent 73e41e8eb9
commit 5a585b1c8a

View File

@ -228,7 +228,7 @@ thread_test(void *arg)
static int
test2()
{
pthread_t tid[NUMBER_OF_THREADS - 1];
pthread_t tid[NUMBER_OF_THREADS];
int err, i, limit;
thread_queue = mxs_queue_alloc(TEST_QUEUE_SIZE, HEARTBEATS_TO_EXPIRE);