From 596df071319c0514219c5d23959d66686cdd4ae6 Mon Sep 17 00:00:00 2001 From: Ross Vandegrift Date: Mon, 27 Aug 2018 12:10:12 +0900 Subject: [PATCH] Format-string harden eina_strbuf_append_printf use Summary: gcc -Werror=format-security flags this for lacking a format string. Fixes: https://phab.enlightenment.org/T7325 Reviewers: #committers, Hermet Reviewed By: #committers, Hermet Subscribers: Hermet, cedric, #reviewers, #committers, zmike Tags: #efl Maniphest Tasks: T7325 Differential Revision: https://phab.enlightenment.org/D6867 --- src/lib/efl/interfaces/efl_ui_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/efl/interfaces/efl_ui_format.c b/src/lib/efl/interfaces/efl_ui_format.c index c7b8c59..4f3a867 100644 --- a/src/lib/efl/interfaces/efl_ui_format.c +++ b/src/lib/efl/interfaces/efl_ui_format.c @@ -130,7 +130,7 @@ _default_format_cb(void *data, Eina_Strbuf *str, const Eina_Value value) } else if (sd->format_type == FORMAT_TYPE_STATIC) { - eina_strbuf_append_printf(str, sd->template); + eina_strbuf_append_printf(str, "%s", sd->template); } else { -- 2.7.4