summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-04-02 09:24:21 -0400
committerDan Winship <danw@gnome.org>2014-04-02 09:24:21 -0400
commita9fe0d3a347c6b8af6d772a758c64ffd9580d9de (patch)
tree458a454f487c564dfc824bfb519ea1c19f7345fc
parente9fdfa1700845dcac3702e8869f158d068a7d8a5 (diff)
downloadNetworkManager-a9fe0d3a347c6b8af6d772a758c64ffd9580d9de.tar.gz
dcb: fix -Wformat-security bugs
-rw-r--r--src/nm-dcb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nm-dcb.c b/src/nm-dcb.c
index 77d7b41650..5e25cd84e6 100644
--- a/src/nm-dcb.c
+++ b/src/nm-dcb.c
@@ -208,7 +208,7 @@ _dcb_setup (const char *iface,
g_string_append_c (s, '0' + id);
}
- success = do_helper (iface, DCBTOOL, run_func, user_data, error, s->str);
+ success = do_helper (iface, DCBTOOL, run_func, user_data, error, "%s", s->str);
g_string_free (s, TRUE);
if (!success)
return FALSE;
@@ -242,7 +242,7 @@ _dcb_cleanup (const char *iface,
/* Turn everything off and return first error we get (if any) */
while (iter && *iter) {
- if (!do_helper (iface, DCBTOOL, run_func, user_data, success ? error : NULL, *iter))
+ if (!do_helper (iface, DCBTOOL, run_func, user_data, success ? error : NULL, "%s", *iter))
success = FALSE;
iter++;
}