Skip to content

Commit

Permalink
dcb: fix -Wformat-security bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
danwinship committed Apr 2, 2014
1 parent e9fdfa1 commit a9fe0d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nm-dcb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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++;
}
Expand Down

0 comments on commit a9fe0d3

Please sign in to comment.