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