mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
iphlpapi: Avoid using %n (clang).
This commit is contained in:
parent
d994917fc6
commit
0ed04f87dd
@ -654,12 +654,7 @@ static char *debugstr_ipv4(const in_addr_t *in_addr, char *buf)
|
|||||||
if (addrp == (const BYTE *)in_addr + sizeof(*in_addr) - 1)
|
if (addrp == (const BYTE *)in_addr + sizeof(*in_addr) - 1)
|
||||||
sprintf(p, "%d", *addrp);
|
sprintf(p, "%d", *addrp);
|
||||||
else
|
else
|
||||||
{
|
p += sprintf(p, "%d.", *addrp);
|
||||||
int n;
|
|
||||||
|
|
||||||
sprintf(p, "%d.%n", *addrp, &n);
|
|
||||||
p += n;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
@ -685,10 +680,7 @@ static char *debugstr_ipv6(const struct WS_sockaddr_in6 *sin, char *buf)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int n;
|
p += sprintf(p, "%x:", ntohs(addr->u.Word[i]));
|
||||||
|
|
||||||
sprintf(p, "%x:%n", ntohs(addr->u.Word[i]), &n);
|
|
||||||
p += n;
|
|
||||||
in_zero = FALSE;
|
in_zero = FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user