summaryrefslogtreecommitdiff
path: root/src/or/rendcommon.c
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-03-14 23:40:37 +0000
committerPeter Palfrader <peter@palfrader.org>2006-03-14 23:40:37 +0000
commita4ec555228153801a1b866a1eb93c633b391a88e (patch)
tree16fb2a587f0ac78b0ff3c0f44d026307fb75fccc /src/or/rendcommon.c
parentde5fac0ed1252596c29114482f3d59c9b8497371 (diff)
downloadtor-a4ec555228153801a1b866a1eb93c633b391a88e.tar.gz
tor-a4ec555228153801a1b866a1eb93c633b391a88e.zip
change INET_NTOA_BUF_LEN+1 to INET_NTOA_BUF_LEN
add a comment in a few places where we add weird numbers to buffer lengths svn:r6161
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r--src/or/rendcommon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index ef9cfddc95..4c60bac803 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -314,7 +314,7 @@ rend_valid_service_id(const char *query)
int
rend_cache_lookup_entry(const char *query, int version, rend_cache_entry_t **e)
{
- char key[REND_SERVICE_ID_LEN+2];
+ char key[REND_SERVICE_ID_LEN+2]; /* 1<query>\0 or 0<query>\0 */
tor_assert(rend_cache);
if (!rend_valid_service_id(query))
return -1;
@@ -366,7 +366,7 @@ rend_cache_store(const char *desc, size_t desc_len)
rend_cache_entry_t *e;
rend_service_descriptor_t *parsed;
char query[REND_SERVICE_ID_LEN+1];
- char key[REND_SERVICE_ID_LEN+2];
+ char key[REND_SERVICE_ID_LEN+2]; /* 1<query>\0 or 0<query>\0 */
time_t now;
tor_assert(rend_cache);