diff options
-rw-r--r-- | resolve_host.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resolve_host.c b/resolve_host.c index 7687503..69859a3 100644 --- a/resolve_host.c +++ b/resolve_host.c @@ -71,7 +71,7 @@ int resolve_host(const char *host, char *addrstr) if (sin6->sin6_scope_id) { len = strnlen(tmpbuf, sizeof(tmpbuf)); ipaddr = tmpbuf + len; - snprintf(tmpbuf, sizeof(tmpbuf) - len, "%%%u", + snprintf(ipaddr, sizeof(tmpbuf) - len, "%%%u", sin6->sin6_scope_id); } break; |