From b43c9961a34cceb2977481dfa8e63cc2d138e3e4 Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Wed, 22 Sep 2021 12:53:03 +0530 Subject: [PATCH] AP_Param: disable format security --- libraries/AP_Param/AP_Param.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Param/AP_Param.cpp b/libraries/AP_Param/AP_Param.cpp index 0f2933fff0..04851552b6 100644 --- a/libraries/AP_Param/AP_Param.cpp +++ b/libraries/AP_Param/AP_Param.cpp @@ -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); } } }