mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
7611dc8338
I hit the following two problems.
- `io.read(0, buf)` always returned a new empty string object.
- `io.read(num, buf)` was appending data to the given `buf`.
This also meant that `buf` was never empty if EOF was reached.