This is an automated email from the ASF dual-hosted git repository. pkarashchenko pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 0c200b8966fece082c6cf8d2d231bd34859a41f0 Author: Xiang Xiao <xiaoxi...@xiaomi.com> AuthorDate: Sat Nov 19 13:17:16 2022 +0800 Fix dac_main.c: error: format string is not a string literal (potentially insecure) Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com> --- examples/dac/dac_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/dac/dac_main.c b/examples/dac/dac_main.c index 14b9942ba..d0ef1c6b1 100644 --- a/examples/dac/dac_main.c +++ b/examples/dac/dac_main.c @@ -110,7 +110,7 @@ static void print_cmds(FAR const char *header, size_t ncmds, FAR const char *trailer) { - printf(header); + printf("%s", header); while (ncmds--) { printf(" %s %s %c", cmds->name, cmds->args, @@ -118,7 +118,7 @@ static void print_cmds(FAR const char *header, cmds++; } - printf(trailer); + printf("%s", trailer); } static const struct command *find_cmd(FAR const char *name,