From 336e487a33f06ef6afe5479098607356043741b1 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Tue, 3 Dec 2013 10:49:57 +0100 Subject: [PATCH] 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< - 2.0-0.18.20131119git +- make mii-diag compile with -Werror=format-security (#1037218) + * Tue Nov 19 2013 Jiri Popelka - 2.0-0.17.20131119git - latest snapshot (#1021109)