소스 검색

Strings need room for a NUL.

svn:r1630
Nick Mathewson 21 년 전
부모
커밋
f6dd710aff
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/or/rendservice.c

+ 1 - 1
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");