[net-tools] make mii-diag compile with -Werror=format-security (#1037218)
Jiří Popelka
jpopelka at fedoraproject.org
Tue Dec 3 09:50:39 UTC 2013
commit 336e487a33f06ef6afe5479098607356043741b1
Author: Jiri Popelka <jpopelka at redhat.com>
Date: Tue Dec 3 10:49:57 2013 +0100
make mii-diag compile with -Werror=format-security (#1037218)
mii-diag.c | 4 ++--
net-tools.spec | 5 ++++-
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/mii-diag.c b/mii-diag.c
index 49e05c2..69ebd0b 100644
--- a/mii-diag.c
+++ b/mii-diag.c
@@ -209,7 +209,7 @@ main(int argc, char **argv)
}
if (verbose || opt_version)
- printf(version);
+ printf("%s", version);
/* Open a basic socket. */
if ((skfd = socket(AF_INET, SOCK_DGRAM,0)) < 0) {
@@ -541,7 +541,7 @@ int show_basic_mii(long ioaddr, int phy_id)
bmcr & 0x0100 ? "full":"half");
for (i = 0; i < 9; i++)
if (bmcr & (0x0080<<i))
- printf(bmcr_bits[i]);
+ printf("%s", bmcr_bits[i]);
new_bmsr = mdio_read(ioaddr, phy_id, 1);
if ((bmsr & 0x0016) == 0x0004)
diff --git a/net-tools.spec b/net-tools.spec
index 04765d5..ae41e52 100644
--- a/net-tools.spec
+++ b/net-tools.spec
@@ -3,7 +3,7 @@
Summary: Basic networking tools
Name: net-tools
Version: 2.0
-Release: 0.17.%{checkout}%{?dist}
+Release: 0.18.%{checkout}%{?dist}
License: GPLv2+
Group: System Environment/Base
URL: http://sourceforge.net/projects/net-tools/
@@ -157,6 +157,9 @@ install -m 644 %{SOURCE9} %{buildroot}%{_unitdir}
%attr(0644,root,root) %{_unitdir}/arp-ethers.service
%changelog
+* Tue Dec 03 2013 Jiri Popelka <jpopelka at redhat.com> - 2.0-0.18.20131119git
+- make mii-diag compile with -Werror=format-security (#1037218)
+
* Tue Nov 19 2013 Jiri Popelka <jpopelka at redhat.com> - 2.0-0.17.20131119git
- latest snapshot (#1021109)
More information about the scm-commits
mailing list