From: Christian Grothoff Date: Thu, 13 Oct 2011 19:45:54 +0000 (+0000) Subject: copy and paste copies bugs X-Git-Tag: initial-import-from-subversion-38251~16548 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=defcc737a136bf04676d731be63a7e549c717e7b;p=oweals%2Fgnunet.git copy and paste copies bugs --- diff --git a/src/ats/ats_api_performance.c b/src/ats/ats_api_performance.c index fd733911d..8444658f3 100644 --- a/src/ats/ats_api_performance.c +++ b/src/ats/ats_api_performance.c @@ -204,6 +204,7 @@ transmit_message_to_ats (void *cls, { memcpy (&cbuf[ret], &p[1], p->size); ret += p->size; + size -= p->size; GNUNET_CONTAINER_DLL_remove (ph->pending_head, ph->pending_tail, p);