Fix format string vulnerability in verify ()

which caused a build failure when compiling with -Werror=format-security
This commit is contained in:
Michael Biebl 2012-03-24 23:05:41 +01:00
parent 54618a72e3
commit 546c269f8d

View file

@ -402,10 +402,10 @@ verify (NMSetting *setting, GSList *all_settings, GError **error)
|| !value[0]
|| (strlen (value) > 200)
|| strchr (value, ' ')) {
g_set_error (error,
NM_SETTING_BOND_ERROR,
NM_SETTING_BOND_ERROR_INVALID_OPTION,
key);
g_set_error_literal (error,
NM_SETTING_BOND_ERROR,
NM_SETTING_BOND_ERROR_INVALID_OPTION,
key);
return FALSE;
}
}