diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-07-22 21:31:04 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-07-22 21:31:04 +0000 |
commit | 7b4865ec334ff705cea215a35aa13a75df90e715 (patch) | |
tree | 7f150c02da248f6cb5e1557f0d0f3d090e0a55a7 /src/or/dirserv.c | |
parent | 0c990259dec0ba48efda20cb4b0e58cd2965ec3f (diff) | |
download | tor-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.c | 2 |
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; |