[or-cvs] Strings need room for a NUL.

Nick Mathewson nickm at seul.org
Thu Apr 15 02:02:48 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv23859/src/or

Modified Files:
	rendservice.c 
Log Message:
Strings need room for a NUL.

Index: rendservice.c
===================================================================
RCS file: /home/or/cvsroot/src/or/rendservice.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- rendservice.c	15 Apr 2004 01:23:43 -0000	1.54
+++ rendservice.c	15 Apr 2004 02:02:46 -0000	1.55
@@ -881,7 +881,7 @@
   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");



More information about the tor-commits mailing list