[or-cvs] forward port:
Roger Dingledine
arma at seul.org
Tue Dec 21 02:57:28 UTC 2004
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
control.c
Log Message:
forward port:
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.39
diff -u -d -r1.38 -r1.39
--- control.c 14 Dec 2004 03:36:33 -0000 1.38
+++ control.c 21 Dec 2004 02:57:25 -0000 1.39
@@ -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