summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-06-26 09:45:09 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-06-26 09:45:09 +0000
commit05da25f297c4d26b6bb454a9649b1dd63a102910 (patch)
tree568d1118ca9c2c7bfbcaf2d2132a7e870367d407 /string.c
parent839f4c5f3fdb4ea6b270fce17f1c3881060087d4 (diff)
980626
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/string.c b/string.c
index 90787cdb403..013238d8ce0 100644
--- a/string.c
+++ b/string.c
@@ -344,7 +344,6 @@ str_modify(str)
char *ptr;
if (rb_safe_level() >= 5) {
- extern VALUE eSecurityError;
Raise(eSecurityError, "cannot change string status");
}
if (FL_TEST(str, STR_FREEZE))
@@ -1091,7 +1090,7 @@ str_aset(str, indx, val)
{
int beg, end;
if (range_beg_end(indx, &beg, &end)) {
- str_replace2(str, beg, end, val);
+ str_replace2(str, beg, end, str_to_str(val));
return val;
}
}