From 4488723b6053c9afeb4e90c851e156020f1a2a22 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Tue, 7 Dec 2010 17:21:39 +0000 Subject: [PATCH] off by one, should remove churn code at some point though --- src/dht/gnunet-dht-driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]))*/ -- 2.25.1