mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* object.c (rb_str2cstr): warn if string contains \0 and length
value is ignored. * class.c (rb_singleton_class_clone): should copy class constant table as well. * class.c (rb_include_module): sometimes cache was mistakenly left uncleared - based on the patch by K.Kosako. * ruby.h: all Check_SafeStr()'s are replaced by SafeStr() to ensure 'to_str' be always effective. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6771ffa971
commit
62261ccb47
13 changed files with 114 additions and 78 deletions
1
intern.h
1
intern.h
|
@ -310,7 +310,6 @@ VALUE rb_str_new4 _((VALUE));
|
|||
VALUE rb_tainted_str_new _((const char*, long));
|
||||
VALUE rb_tainted_str_new2 _((const char*));
|
||||
VALUE rb_obj_as_string _((VALUE));
|
||||
VALUE rb_str_to_str _((VALUE));
|
||||
VALUE rb_str_dup _((VALUE));
|
||||
VALUE rb_str_plus _((VALUE, VALUE));
|
||||
VALUE rb_str_times _((VALUE, VALUE));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue