summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-11-17 05:59:45 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-11-17 05:59:45 +0000
commiteab254084682ee8b30c3c872a31848f364c08a4d (patch)
treece94c71806c09374f7ebec10daf571952baafd72 /string.c
parent21efb309e7bd3985647d806b1ef7969c16afba02 (diff)
eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 46f9725ce3..e068e44871 100644
--- a/string.c
+++ b/string.c
@@ -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;