Message ID | 1297794670-4345-1-git-send-email-jlayton@samba.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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;