summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-07-26 22:32:13 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-07-26 22:32:13 +0000
commit136b7253b1d9ecc0743a884c422618f8872186d7 (patch)
tree141c3fbece4a5a65933ab72655b4b5e72120167d
parent3efff022f21d115f6f5b9c5474700e26a51d85a0 (diff)
libs/nixio: convert data to string in writeall(), this is required for numeric and udata arguments
-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 ecefb4c97..bce4ce25e 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