mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 13:40:20 +01:00
dcb: fix -Wformat-security bugs
This commit is contained in:
parent
e9fdfa1700
commit
a9fe0d3a34
1 changed files with 2 additions and 2 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue