AP_Param: disable format security

This commit is contained in:
bugobliterator 2021-09-22 12:53:03 +05:30 committed by Peter Barker
parent 4b62dd75b0
commit b43c9961a3
1 changed files with 1 additions and 1 deletions

View File

@ -2483,7 +2483,7 @@ void AP_Param::set_defaults_from_table(const struct defaults_table_struct *table
if (!AP_Param::set_default_by_name(table[i].name, table[i].value)) {
char *buf = nullptr;
if (asprintf(&buf, "param deflt fail:%s", table[i].name) > 0) {
AP_BoardConfig::config_error(buf);
AP_BoardConfig::config_error("%s", buf);
}
}
}