From: Florian Forster Date: Mon, 7 Mar 2011 08:12:06 +0000 (+0100) Subject: src/liboping.c: Fix a compiler warning X-Git-Tag: liboping-1.6.2~8^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c21f5a46cdff30fe870ac3f79d3a5a32ac6a64db;p=liboping.git src/liboping.c: Fix a compiler warning … regarding a non-static format string. Thanks to Brian Edwards for reporting this problem. --- 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; }