diff options
author | teor <teor@torproject.org> | 2020-04-30 22:22:09 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-04-30 22:22:09 +1000 |
commit | 6dc9930d3a14c30af0f285a884476f33a782938c (patch) | |
tree | cdfc6e78095427a32ae830c58d53b73da4506822 /src/lib/net/address.c | |
parent | efcae919aea4611d9f4ec5815170c48fc67134cf (diff) | |
parent | 7bf257b1297d146047d10e0d527b45a88abf892a (diff) | |
download | tor-6dc9930d3a14c30af0f285a884476f33a782938c.tar.gz tor-6dc9930d3a14c30af0f285a884476f33a782938c.zip |
Merge branch 'pr1870_squashed'
Diffstat (limited to 'src/lib/net/address.c')
-rw-r--r-- | src/lib/net/address.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/net/address.c b/src/lib/net/address.c index 4193053ee1..437ffe652e 100644 --- a/src/lib/net/address.c +++ b/src/lib/net/address.c @@ -1188,8 +1188,7 @@ fmt_addr_impl(const tor_addr_t *addr, int decorate) const char * fmt_addrport(const tor_addr_t *addr, uint16_t port) { - /* Add space for a colon and up to 5 digits. */ - static char buf[TOR_ADDR_BUF_LEN + 6]; + static char buf[TOR_ADDRPORT_BUF_LEN]; tor_snprintf(buf, sizeof(buf), "%s:%u", fmt_and_decorate_addr(addr), port); return buf; } |