diff options
author | Eric Wong <e@80x24.org> | 2018-07-15 00:58:37 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-07-15 01:01:39 +0000 |
commit | fd9847c808c421a201ae574d93f6d0ea36d9ec63 (patch) | |
tree | 9553008576ab6aae49a1478653e5f835085f0c7a /ext/mwrap/mwrap.c | |
parent | 45e1931c71095e9cd18067e69ec93f503c700f86 (diff) | |
download | mwrap-fd9847c808c421a201ae574d93f6d0ea36d9ec63.tar.gz |
Users may screw up ordering of arguments :x
Diffstat (limited to 'ext/mwrap/mwrap.c')
-rw-r--r-- | ext/mwrap/mwrap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mwrap/mwrap.c b/ext/mwrap/mwrap.c index 3f59f11..c160e33 100644 --- a/ext/mwrap/mwrap.c +++ b/ext/mwrap/mwrap.c @@ -346,6 +346,7 @@ static VALUE mwrap_dump(int argc, VALUE * argv, VALUE mod) io = *((VALUE *)dlsym(RTLD_DEFAULT, "rb_stderr")); a.min = NIL_P(min) ? 0 : NUM2SIZET(min); + io = rb_io_get_io(io); io = rb_io_get_write_io(io); GetOpenFile(io, fptr); a.fp = rb_io_stdio_file(fptr); |