libs/nixio: convert data to string in writeall(), this is required for numeric and...
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 26 Jul 2009 22:32:13 +0000 (22:32 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 26 Jul 2009 22:32:13 +0000 (22:32 +0000)
libs/nixio/lua/nixio/util.lua

index ecefb4c..bce4ce2 100644 (file)
@@ -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