Skip to content
Snippets Groups Projects
Commit 24a2352d authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Trivial fix for a trivial warning with gcc 9.1.1

Fix on 4e3d144f; bug not in any
released Tor.
parent ff9aa321
No related branches found
No related tags found
No related merge requests found
......@@ -339,7 +339,7 @@ tor_addr_to_str(char *dest, const tor_addr_t *addr, size_t len, int decorate)
break;
case AF_INET6:
/* Shortest addr [ :: ] + \0 */
if (len < (3 + (decorate ? 2 : 0)))
if (len < (3u + (decorate ? 2 : 0)))
return NULL;
if (decorate)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment