diff options
author | Roger Dingledine <arma@torproject.org> | 2004-12-21 02:57:25 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-12-21 02:57:25 +0000 |
commit | f9fd1018691bd515e35f171491d9225b4b6330ff (patch) | |
tree | b986bc641a2f179483023bf3b0109cb2e5675bc5 /src | |
parent | 5670c31e3eb07a29a6e1657f9215c462433d12be (diff) | |
download | tor-f9fd1018691bd515e35f171491d9225b4b6330ff.tar.gz tor-f9fd1018691bd515e35f171491d9225b4b6330ff.zip |
forward port:
fix a fencepost: we were blowing away the \n when reporting confvalue items
svn:r3194
Diffstat (limited to 'src')
-rw-r--r-- | src/or/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c index 281a2ed649..f385351309 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -266,7 +266,7 @@ handle_control_getconf(connection_t *conn, uint16_t body_len, const char *body) 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); |