copy and paste copies bugs
authorChristian Grothoff <christian@grothoff.org>
Thu, 13 Oct 2011 19:45:54 +0000 (19:45 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 13 Oct 2011 19:45:54 +0000 (19:45 +0000)
src/ats/ats_api_performance.c

index fd733911d44d0e760e166d4b5c3e9232b4d81024..8444658f3b69f858c63ecf9079ea2b679a778136 100644 (file)
@@ -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);