User Tools

Site Tools


action_read

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

action_read [2018/08/07 19:26]
Niek created
action_read [2018/08/08 14: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,​ ": ");
action_read.txt ยท Last modified: 2018/08/08 14:31 by Niek