From: Nathan S. Evans Date: Tue, 7 Dec 2010 17:21:39 +0000 (+0000) Subject: off by one, should remove churn code at some point though X-Git-Tag: initial-import-from-subversion-38251~19539 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4488723b6053c9afeb4e90c851e156020f1a2a22;p=oweals%2Fgnunet.git off by one, should remove churn code at some point though --- diff --git a/src/dht/gnunet-dht-driver.c b/src/dht/gnunet-dht-driver.c index 90690809d..a1966e2ef 100644 --- a/src/dht/gnunet-dht-driver.c +++ b/src/dht/gnunet-dht-driver.c @@ -2756,7 +2756,7 @@ run (void *cls, buf = data; count = 0; - while (count < frstat.st_size) + while (count < frstat.st_size - 1) { count++; /* if (((data[count] == '\n') || (data[count] == '\0')) && (buf != &data[count]))*/