From 0ed04f87dd94aa0a7a4d6bf9a93ed73c4da4371c Mon Sep 17 00:00:00 2001 From: Austin English Date: Sun, 3 Oct 2010 17:31:03 -0700 Subject: [PATCH] iphlpapi: Avoid using %n (clang). --- dlls/iphlpapi/iphlpapi_main.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c index 081de0e7710..13294660a5c 100644 --- a/dlls/iphlpapi/iphlpapi_main.c +++ b/dlls/iphlpapi/iphlpapi_main.c @@ -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) sprintf(p, "%d", *addrp); else - { - int n; - - sprintf(p, "%d.%n", *addrp, &n); - p += n; - } + p += sprintf(p, "%d.", *addrp); } return buf; } @@ -685,10 +680,7 @@ static char *debugstr_ipv6(const struct WS_sockaddr_in6 *sin, char *buf) } else { - int n; - - sprintf(p, "%x:%n", ntohs(addr->u.Word[i]), &n); - p += n; + p += sprintf(p, "%x:", ntohs(addr->u.Word[i])); in_zero = FALSE; } }