aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-07-22 21:31:04 +0000
committerNick Mathewson <nickm@torproject.org>2004-07-22 21:31:04 +0000
commit7b4865ec334ff705cea215a35aa13a75df90e715 (patch)
tree7f150c02da248f6cb5e1557f0d0f3d090e0a55a7 /src/or/dirserv.c
parent0c990259dec0ba48efda20cb4b0e58cd2965ec3f (diff)
downloadtor-7b4865ec334ff705cea215a35aa13a75df90e715.tar
tor-7b4865ec334ff705cea215a35aa13a75df90e715.tar.gz
Add notion of "longest nickname-or-hex-digest-with-$"
svn:r2108
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 9dfd4601d..ae8968ce2 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -699,7 +699,7 @@ static int generate_runningrouters(crypto_pk_env_t *private_key)
char published[33];
time_t published_on;
- len = 1024+MAX_NICKNAME_LEN*smartlist_len(descriptor_list);
+ len = 1024+(MAX_HEX_NICKNAME_LEN+2)*smartlist_len(descriptor_list);
s = tor_malloc_zero(len);
if (list_running_servers(&cp))
return -1;