summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-15 02:02:46 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-15 02:02:46 +0000
commitf6dd710affded1de5d60866f647c3794a7c87a1a (patch)
tree54881d94207bdb88aa49e5e25e586fc031be0432
parent3f352719f323f343933d8371f67b3c5a862caa9d (diff)
downloadtor-f6dd710affded1de5d60866f647c3794a7c87a1a.tar.gz
tor-f6dd710affded1de5d60866f647c3794a7c87a1a.zip
Strings need room for a NUL.
svn:r1630
-rw-r--r--src/or/rendservice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index d2c5e9b433..f4639f7d7e 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -881,7 +881,7 @@ rend_service_set_connection_addr_port(connection_t *conn, circuit_t *circ)
rend_service_t *service;
int i;
rend_service_port_config_t *p;
- char serviceid[REND_SERVICE_ID_LEN];
+ char serviceid[REND_SERVICE_ID_LEN+1];
assert(circ->purpose == CIRCUIT_PURPOSE_S_REND_JOINED);
log_fn(LOG_DEBUG,"beginning to hunt for addr/port");