From 2093f607603de756e0ec431c49dbbdca9ce22850 Mon Sep 17 00:00:00 2001 From: Roger Dingledine <arma@torproject.org> Date: Sat, 18 Oct 2003 01:28:39 +0000 Subject: [PATCH] we've been stomping on memory while reading config doesn't seem to have bitten us yet, but let's fix that :) svn:r619 --- src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/util.c b/src/common/util.c index 333cd65e6e..ccc130030e 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -481,7 +481,7 @@ try_next_line: do { *s = 0; s--; - } while (isspace(*s)); + } while (s >= line && isspace(*s)); key = line; while(isspace(*key)) -- GitLab