Commit 810e37b1 authored by Tomoyuki Sahara's avatar Tomoyuki Sahara

return value of syswrite may be less than length of given string.

parent d5cf1de1
......@@ -99,7 +99,7 @@ class IO
return str.size unless str.size > 0
len = syswrite(str)
if str.size == len
if len != -1
@pos += len
return len
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment