浏览代码

we've been stomping on memory while reading config
doesn't seem to have bitten us yet, but let's fix that :)


svn:r619

Roger Dingledine 22 年之前
父节点
当前提交
2093f60760
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/common/util.c

+ 1 - 1
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))