From c21f5a46cdff30fe870ac3f79d3a5a32ac6a64db Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 7 Mar 2011 09:12:06 +0100 Subject: [PATCH] src/liboping.c: Fix a compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … regarding a non-static format string. Thanks to Brian Edwards for reporting this problem. --- src/liboping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liboping.c b/src/liboping.c index beef4f5..83ca9c2 100644 --- a/src/liboping.c +++ b/src/liboping.c @@ -1429,7 +1429,7 @@ int ping_host_add (pingobj_t *obj, const char *host) snprintf (errmsg, PING_ERRMSG_LEN, "Unknown `ai_family': %i", ai_ptr->ai_family); errmsg[PING_ERRMSG_LEN - 1] = '\0'; - dprintf (errmsg); + dprintf ("%s", errmsg); ping_set_error (obj, "getaddrinfo", errmsg); continue; } -- 2.30.2