aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonan Le Martret <ronan.lemartret@iot.bzh>2017-10-30 19:13:22 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 15:02:54 +0100
commit8a6f7fc9255c8e653395db7f1b3a4eb8b637a7b3 (patch)
tree455086530ebeaa734da5b1b94b3db5fbb1ee95cf
parent120d04e6a71e54319e3fc0c40346eb828bdd45d3 (diff)
fix build error
* error: format not a string literal and no format arguments [-Werror=format-security] Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
-rw-r--r--ctl-lib/ctl-lua.c2
1 files changed, 1 insertions, 1 deletions
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)