[or-cvs] fix a fencepost: we were blowing away the \n when reporting...
Roger Dingledine
arma at seul.org
Tue Dec 21 02:56:33 UTC 2004
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/0091/tor/src/or
Modified Files:
Tag: tor-0_0_9-patches
control.c
Log Message:
fix a fencepost: we were blowing away the \n when reporting confvalue items
Index: control.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/control.c,v
retrieving revision 1.38
retrieving revision 1.38.2.1
diff -u -d -r1.38 -r1.38.2.1
--- control.c 14 Dec 2004 03:36:33 -0000 1.38
+++ control.c 21 Dec 2004 02:56:31 -0000 1.38.2.1
@@ -266,7 +266,7 @@
while (answer) {
struct config_line_t *next;
- size_t alen = strlen(answer->key)+strlen(answer->value)+2;
+ size_t alen = strlen(answer->key)+strlen(answer->value)+3;
char *astr = tor_malloc(alen);
tor_snprintf(astr, alen, "%s %s\n", answer->key, answer->value);
smartlist_add(answers, astr);
More information about the tor-commits
mailing list