Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SyncWriteStream breaks _G.len
  • Loading branch information
kengonakajima committed Sep 8, 2012
1 parent be683ff commit 922fd84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/luvit/fs.lua
Expand Up @@ -363,7 +363,7 @@ function SyncWriteStream:initialize(fd)
end
function SyncWriteStream:write(chunk, callback)
len = fs.writeSync(self.fd, self.offset, chunk)
local len = fs.writeSync(self.fd, self.offset, chunk)
self.offset = self.offset + len
return len
end
Expand Down

0 comments on commit 922fd84

Please sign in to comment.