diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-09-21 22:24:45 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-09-21 22:24:45 +0000 |
commit | 58200f06a55faa623d20a097e54de74a24938884 (patch) | |
tree | b2ccdbf490da379913670486673b6acbd7929f12 /src/or/dns.c | |
parent | 4f13cb82fd9a49781a8c74ff6519e0a1e4027f95 (diff) | |
download | tor-58200f06a55faa623d20a097e54de74a24938884.tar.gz tor-58200f06a55faa623d20a097e54de74a24938884.zip |
Fix bug in r8440: base32 uses 5 bytes per char, not 4.
svn:r8447
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index 5d12dec96d..4a3f11389b 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -1606,7 +1606,7 @@ static void launch_wildcard_check(int len, const char *suffix) { char random_bytes[16], name[64], *addr; - size_t n = (len+1)/2; + size_t n = (len*5+7)/8; int r; tor_assert(n <= sizeof(random_bytes)); |