diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-21 08:30:09 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-21 08:30:09 +0000 |
commit | c7c1384e60a9f3dcc65b3516cdde6dcb7be17f60 (patch) | |
tree | acec075393700c201efd71cc2e3356e43c13212f /io.c | |
parent | a7ed0fe4f939de5e0a35de57706c14dd1334d4d9 (diff) |
* eval.c (rb_thread_cleanup): should not modify the global
variable curr_thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -2378,10 +2378,9 @@ static VALUE rb_io_putc(io, ch) VALUE io, ch; { - char c[2]; - c[0] = NUM2CHR(ch); - c[1] = '\0'; - rb_io_write(io, rb_str_new(c, 1)); + char c = NUM2CHR(ch); + + rb_io_write(io, rb_str_new(&c, 1)); return ch; } |