From: Nick Mathewson Date: Thu, 15 Apr 2004 02:02:46 +0000 (+0000) Subject: Strings need room for a NUL. X-Git-Tag: tor-0.0.6incompat-merged~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6dd710affded1de5d60866f647c3794a7c87a1a;p=thirdparty%2Ftor.git Strings need room for a NUL. svn:r1630 --- 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");