Commit 58200f06 authored by Nick Mathewson's avatar Nick Mathewson 🏃
Browse files

Fix bug in r8440: base32 uses 5 bytes per char, not 4.

parent 4f13cb82
......@@ -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));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment