summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--libs/nixio/lua/nixio/util.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/nixio/lua/nixio/util.lua b/libs/nixio/lua/nixio/util.lua
index ecefb4c97f..bce4ce25e1 100644
--- a/libs/nixio/lua/nixio/util.lua
+++ b/libs/nixio/lua/nixio/util.lua
@@ -79,6 +79,7 @@ end
meta.recvall = meta.readall
function meta.writeall(self, data)
+ data = tostring(data)
local sent, code, msg = self:write(data)
if not sent then