commit 48c87dc9de44e62a146399d1ed180da8a4c88f49
parent 3d8c1be931ffa54a86ea66cc5c981eb651ea50b4
Author: Julius Bünger <buenger@mytum.de>
Date: Wed, 7 Jan 2015 19:49:40 +0000
fixed index of for-loop
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/rps/gnunet-service-rps_sampler.c b/src/rps/gnunet-service-rps_sampler.c
@@ -363,7 +363,7 @@ RPS_sampler_resize (unsigned int new_size)
"SAMPLER: sampler->sampler_elements now points to %p\n",
sampler->sampler_elements);
- for (i = new_size ; i < old_size ; i++)
+ for (i = 0 ; i < old_size - new_size ; i++)
{/* Remove unneeded rest */
LOG (GNUNET_ERROR_TYPE_DEBUG, "SAMPLER: Removing %" PRIX64 ". sampler\n", i);
if (NULL != sampler->remove_cb)