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 ecefb4c97f0ca606665c43cb6ffb97df8462ecb0..bce4ce25e1c05e88c45d9fc7243dc27f90ab3dd8 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