1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2000-11-17 05:59:45 +00:00
parent 21efb309e7
commit eab2540846
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Fri Nov 17 14:55:18 2000 WATANABE Hirofumi <eban@ruby-lang.org>
* string.c (rb_str_succ): output should be NUL terminated.
Fri Nov 17 02:54:15 2000 Yukihiro Matsumoto <matz@ruby-lang.org>
* io.c (rb_io_close): need not to flush before closing.

View file

@ -829,7 +829,7 @@ rb_str_succ(orig)
memmove(s+1, s, RSTRING(str)->len - n);
*s = c;
RSTRING(str)->len += 1;
RSTRING(str)->ptr[RSTRING(str)->len] = '\0';
}
return str;