mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/gdbm/gdbm.c (rb_gdbm_fetch): str is a VALUE now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1fe40b7cc5
commit
822f1a5a59
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Oct 3 16:49:49 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||
|
||||
* ext/gdbm/gdbm.c (rb_gdbm_fetch): str is a VALUE now.
|
||||
|
||||
Wed Oct 3 13:32:06 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* marshal.c (r_object): better allocation type check for
|
||||
|
|
|
@ -169,7 +169,7 @@ rb_gdbm_fetch(dbm, key)
|
|||
RSTRING(str)->len = val.dsize;
|
||||
RSTRING(str)->orig = 0;
|
||||
RSTRING(str)->ptr = REALLOC_N(val.dptr,char,val.dsize+1);
|
||||
RSTRING(str)->ptr[str->len] = '\0';
|
||||
RSTRING(str)->ptr[val.dsize] = '\0';
|
||||
|
||||
OBJ_TAINT(str);
|
||||
return (VALUE)str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue