From: Matthias Wachs Date: Mon, 6 Dec 2010 10:55:14 +0000 (+0000) Subject: fixed recommited off-by one bringing core_api to fail X-Git-Tag: initial-import-from-subversion-38251~19551 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=73ab139221864b704c2437265a3a4b4cfbe26ef5;p=oweals%2Fgnunet.git fixed recommited off-by one bringing core_api to fail --- diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index ac9a015d8..c9eb8fe6b 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c @@ -3763,7 +3763,7 @@ send_p2p_message_to_client (struct Neighbour *sender, const void *m, size_t msize) { size_t size = msize + sizeof (struct NotifyTrafficMessage) + - (sender->ats_count+1) * sizeof (struct GNUNET_TRANSPORT_ATS_Information); + (sender->ats_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information); char buf[size]; struct NotifyTrafficMessage *ntm; struct GNUNET_TRANSPORT_ATS_Information *ats; @@ -3776,7 +3776,7 @@ send_p2p_message_to_client (struct Neighbour *sender, sender->ats_count, 0); size = msize + sizeof (struct NotifyTrafficMessage) + - (sender->ats_count+1) * sizeof (struct GNUNET_TRANSPORT_ATS_Information); + (sender->ats_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information); } #if DEBUG_CORE GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,