diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-06-20 19:55:38 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-06-20 19:55:38 +0000 |
commit | 45efbb2efbaa11a25e7e53592ee41f971ce6babd (patch) | |
tree | 4103f7eb5e6827093527c44c65fd6fa1c7781c18 /src | |
parent | 160ddfc67766446ba16bf9d9495d809b1e7a5c8d (diff) | |
download | gnunet-45efbb2efbaa11a25e7e53592ee41f971ce6babd.tar.gz gnunet-45efbb2efbaa11a25e7e53592ee41f971ce6babd.zip |
-fix off-by-1
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, |