From 5e8285841991ce984c1d7e831b0f68b8275ac5b1 Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Mon, 30 Oct 2017 19:13:22 +0100 Subject: fix build error * error: format not a string literal and no format arguments [-Werror=format-security] Signed-off-by: Ronan Le Martret --- ctl-lib/ctl-lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ctl-lib') diff --git a/ctl-lib/ctl-lua.c b/ctl-lib/ctl-lua.c index cd5d292..85bd9c2 100644 --- a/ctl-lib/ctl-lua.c +++ b/ctl-lib/ctl-lua.c @@ -350,7 +350,7 @@ STATIC int LuaFormatMessage(lua_State* luaState, int verbosity, int level) { PrintMessage: // TBD: __file__ and __line__ should match LUA source code - AFB_ApiVerbose(source->api, level,__FILE__,__LINE__,source->uid, message); + AFB_ApiVerbose(source->api, level,__FILE__,__LINE__,source->uid, "%s", message); return 0; // nothing return to lua OnErrorExit: // on argument to return (the error message) -- cgit 1.2.3-korg