summaryrefslogtreecommitdiff
path: root/ext/gdbm/gdbm.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-10 07:24:00 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-10 07:24:00 +0000
commitc79368b6a3fa2305592392aed806739b1db79dec (patch)
treeecec54d538c9d3907f0c23e9623ce83cc92aaee0 /ext/gdbm/gdbm.c
parent2f8d3bdc21b37f0d6881b817c8fd9c5b4b351cd4 (diff)
auxiliary routines update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/gdbm/gdbm.c')
-rw-r--r--ext/gdbm/gdbm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/gdbm/gdbm.c b/ext/gdbm/gdbm.c
index fba4d23..0fa13a5 100644
--- a/ext/gdbm/gdbm.c
+++ b/ext/gdbm/gdbm.c
@@ -167,7 +167,7 @@ rb_gdbm_fetch(dbm, key)
RSTRING(str)->ptr = 0;
RSTRING(str)->len = val.dsize;
- RSTRING(str)->orig = 0;
+ RSTRING(str)->aux.capa = val.dsize;
RSTRING(str)->ptr = REALLOC_N(val.dptr,char,val.dsize+1);
RSTRING(str)->ptr[val.dsize] = '\0';
@@ -214,7 +214,7 @@ rb_gdbm_firstkey(dbm)
RSTRING(str)->ptr = 0;
RSTRING(str)->len = key.dsize;
- RSTRING(str)->orig = 0;
+ RSTRING(str)->aux.capa = key.dsize;
RSTRING(str)->ptr = REALLOC_N(key.dptr,char,key.dsize+1);
RSTRING(str)->ptr[RSTRING(str)->len] = '\0';
@@ -238,7 +238,7 @@ rb_gdbm_nextkey(dbm, keystr)
RSTRING(str)->ptr = 0;
RSTRING(str)->len = key2.dsize;
- RSTRING(str)->orig = 0;
+ RSTRING(str)->aux.capa = key2.dsize;
RSTRING(str)->ptr = REALLOC_N(key2.dptr,char,key2.dsize+1);
RSTRING(str)->ptr[RSTRING(str)->len] = '\0';