about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/file.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file.lua b/src/file.lua
index bbf9445..cd71f50 100644
--- a/src/file.lua
+++ b/src/file.lua
@@ -56,9 +56,9 @@ function character_splitting_task(chanin, chanout)
   while true do
     local line = chanin:recv()
     if line == nil then break end
-    local linesz = string.len(line)
+    local linesz = line:len()
     for i=1,linesz do
-      chanout:send(string.sub(line, i, i))
+      chanout:send(line:sub(i, i))
     end
   end
   chanout:send(nil)  -- end of file