summaryrefslogtreecommitdiffstats
path: root/Controler-afb/ctl-lua.c
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-08-15 14:13:49 +0200
committerFulup Ar Foll <fulup@iot.bzh>2017-08-15 14:13:49 +0200
commit716d28f99637d6f2b8eb2758c2da41da67b8027c (patch)
tree4cdfedf7128641b5a4a30f348140aff1c9b8a385 /Controler-afb/ctl-lua.c
parente8b7ffa70194d1cc3ef4cc52bb0ace9f133514cf (diff)
Documentation
Diffstat (limited to 'Controler-afb/ctl-lua.c')
-rw-r--r--Controler-afb/ctl-lua.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Controler-afb/ctl-lua.c b/Controler-afb/ctl-lua.c
index a7cd52f..919230d 100644
--- a/Controler-afb/ctl-lua.c
+++ b/Controler-afb/ctl-lua.c
@@ -275,7 +275,8 @@ STATIC void LuaFormatMessage(lua_State* luaState, LuaAfbMessageT action) {
break;
case'%':
- targetIdx += snprintf (&message[targetIdx], LUA_MSG_MAX_LENGTH-targetIdx,"%");
+ message[targetIdx]='%';
+ targetIdx++;
break;
case 's':