projects
/
liboping.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69b6987
)
src/liboping.c: Fix a compiler warning
author
Florian Forster
<octo@verplant.org>
Mon, 7 Mar 2011 08:12:06 +0000
(09:12 +0100)
committer
Florian Forster
<octo@verplant.org>
Mon, 7 Mar 2011 08:12:06 +0000
(09:12 +0100)
… regarding a non-static format string. Thanks to Brian Edwards for
reporting this problem.
src/liboping.c
patch
|
blob
|
history
diff --git
a/src/liboping.c
b/src/liboping.c
index
beef4f5
..
83ca9c2
100644
(file)
--- 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;
}