aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-10-31 10:30:17 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-10-31 10:30:17 +0000
commit5e0705c0d25ec324f4e094978d76fcfc16e10ed7 (patch)
treead58bc01b508fe6803d76703aad31bd4a3ac0070 /capture_opts.c
parent3e6f1b264e074542f992e751f08b2dfae8cf9946 (diff)
Fix some "format not a string literal and no format arguments" warnings.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26642 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_opts.c')
-rw-r--r--capture_opts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/capture_opts.c b/capture_opts.c
index be35d9743a..266312beef 100644
--- a/capture_opts.c
+++ b/capture_opts.c
@@ -669,7 +669,7 @@ capture_opts_list_interfaces(gboolean machine_readable)
case AT_IPv4:
if (inet_ntop(AF_INET, &if_addr->ip_addr.ip4_addr, addr_str,
ADDRSTRLEN)) {
- printf(addr_str);
+ printf("%s", addr_str);
} else {
printf("<unknown IPv4>");
}
@@ -677,7 +677,7 @@ capture_opts_list_interfaces(gboolean machine_readable)
case AT_IPv6:
if (inet_ntop(AF_INET6, &if_addr->ip_addr.ip6_addr,
addr_str, ADDRSTRLEN)) {
- printf(addr_str);
+ printf("%s", addr_str);
} else {
printf("<unknown IPv6>");
}