Commit a9fe0d3a authored by Dan Winship's avatar Dan Winship
Browse files

dcb: fix -Wformat-security bugs

parent e9fdfa17
...@@ -208,7 +208,7 @@ _dcb_setup (const char *iface, ...@@ -208,7 +208,7 @@ _dcb_setup (const char *iface,
g_string_append_c (s, '0' + id); 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); g_string_free (s, TRUE);
if (!success) if (!success)
return FALSE; return FALSE;
...@@ -242,7 +242,7 @@ _dcb_cleanup (const char *iface, ...@@ -242,7 +242,7 @@ _dcb_cleanup (const char *iface,
/* Turn everything off and return first error we get (if any) */ /* Turn everything off and return first error we get (if any) */
while (iter && *iter) { 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; success = FALSE;
iter++; iter++;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment