mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* sprintf.c (rb_f_sprintf): should protect temporary string from
GC. [ruby-dev:34480] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4ba8ba144e
commit
a8321159c9
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Apr 22 17:49:46 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* sprintf.c (rb_f_sprintf): should protect temporary string from
|
||||
GC. [ruby-dev:34480]
|
||||
|
||||
Tue Apr 22 17:12:05 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* regex.c (re_search): string might be NULL. [ruby-core:16478]
|
||||
|
|
|
@ -471,7 +471,7 @@ rb_f_sprintf(argc, argv)
|
|||
long v = 0;
|
||||
int base, bignum = 0;
|
||||
int len, pos;
|
||||
VALUE tmp;
|
||||
volatile VALUE tmp;
|
||||
volatile VALUE tmp1;
|
||||
|
||||
switch (*p) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue