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

Fix 32-bit warnings in hs_common.c

parent d0816a04
No related branches found
No related tags found
No related merge requests found
......@@ -459,9 +459,10 @@ hs_parse_address(const char *address, ed25519_public_key_t *key_out,
/* Obvious length check. */
if (strlen(address) != HS_SERVICE_ADDR_LEN_BASE32) {
log_warn(LD_REND, "Service address %s has an invalid length. "
"Expected %ld but got %lu.",
escaped_safe_str(address), HS_SERVICE_ADDR_LEN_BASE32,
strlen(address));
"Expected %lu but got %lu.",
escaped_safe_str(address),
(unsigned long) HS_SERVICE_ADDR_LEN_BASE32,
(unsigned long) strlen(address));
goto invalid;
}
......
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