diff options
| author | Tomoyuki Sahara <[email protected]> | 2014-12-16 09:07:45 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2014-12-16 09:07:45 +0900 |
| commit | ee347f34171c878cc156f78a4aa0e49b0f3e04b7 (patch) | |
| tree | 0875efd08a7530af2ee5bd92e5f3b05578351e97 | |
| parent | d1fee5892adb23565fddd9f8e762cc4ca8fd8cb3 (diff) | |
| parent | be9e203563b761f271abc58e1854f027ad808641 (diff) | |
| download | mruby-ee347f34171c878cc156f78a4aa0e49b0f3e04b7.tar.gz mruby-ee347f34171c878cc156f78a4aa0e49b0f3e04b7.zip | |
Merge pull request #31 from tmtm/fix-sysread-segv
FIX: IO#sysread occurs SEGV
| -rw-r--r-- | src/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -420,7 +420,7 @@ mrb_io_sysread(mrb_state *mrb, mrb_value io) } if (mrb_nil_p(buf)) { - buf = mrb_str_new(mrb, "", maxlen); + buf = mrb_str_new(mrb, NULL, maxlen); } if (RSTRING_LEN(buf) != maxlen) { buf = mrb_str_resize(mrb, buf, maxlen); |
