This shows you the differences between two versions of the page.
action_read [2018/08/07 17:26] Niek created |
action_read [2018/08/08 12:31] (current) Niek |
||
---|---|---|---|
Line 55: | Line 55: | ||
content = fh:read("*all"); | content = fh:read("*all"); | ||
io.close(fh); | io.close(fh); | ||
+ | if string.len(content) > 254 then | ||
+ | -- temporary limitation to prevent buffer overflow in devices.c | ||
+ | content = string.sub(content, 1, 254) | ||
+ | end | ||
else | else | ||
local array = pilight.common.explode(errmsg, ": "); | local array = pilight.common.explode(errmsg, ": "); |