diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util/mq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/mq.c b/src/util/mq.c index 33bc077c1..b46e36ddf 100644 --- a/src/util/mq.c +++ b/src/util/mq.c | |||
@@ -395,7 +395,7 @@ GNUNET_MQ_queue_for_callbacks (GNUNET_MQ_SendImpl send, | |||
395 | if (NULL != handlers) | 395 | if (NULL != handlers) |
396 | { | 396 | { |
397 | for (i=0;NULL != handlers[i].cb; i++) ; | 397 | for (i=0;NULL != handlers[i].cb; i++) ; |
398 | mq->handlers = GNUNET_new_array (i, | 398 | mq->handlers = GNUNET_new_array (i + 1, |
399 | struct GNUNET_MQ_MessageHandler); | 399 | struct GNUNET_MQ_MessageHandler); |
400 | memcpy (mq->handlers, | 400 | memcpy (mq->handlers, |
401 | handlers, | 401 | handlers, |