diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2017-08-15 14:13:49 +0200 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2017-08-15 14:13:49 +0200 |
commit | 716d28f99637d6f2b8eb2758c2da41da67b8027c (patch) | |
tree | 4cdfedf7128641b5a4a30f348140aff1c9b8a385 /Controler-afb/ctl-lua.c | |
parent | e8b7ffa70194d1cc3ef4cc52bb0ace9f133514cf (diff) |
Documentation
Diffstat (limited to 'Controler-afb/ctl-lua.c')
-rw-r--r-- | Controler-afb/ctl-lua.c | 3 |
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': |