]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Strings need room for a NUL.
authorNick Mathewson <nickm@torproject.org>
Thu, 15 Apr 2004 02:02:46 +0000 (02:02 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 15 Apr 2004 02:02:46 +0000 (02:02 +0000)
svn:r1630

src/or/rendservice.c

index d2c5e9b43338071c651744dc6fdc8af6dfbf451b..f4639f7d7e2984efe34fbddb496a5a1d19de4702 100644 (file)
@@ -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");