summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-18 08:17:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-18 08:17:44 +0000
commit46c374999667f4c7b6c1ed36d1b8f27624de687a (patch)
treeb0b36a73e92a375d56e150d8f7549e4c41054c2f /string.c
parentaf2228a08d38e4ed748f5552c880ef97374364b0 (diff)
string.c: r45621
* string.c (str_buf_cat): revert r45621. this function does not scan appended data. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45623 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 e5db1feef6..476cff75d4 100644
--- a/string.c
+++ b/string.c
@@ -2024,7 +2024,7 @@ str_buf_cat(VALUE str, const char *ptr, long len)
if (ptr >= RSTRING_PTR(str) && ptr <= RSTRING_END(str)) {
off = ptr - RSTRING_PTR(str);
}
- str_modify_keep_cr(str);
+ rb_str_modify(str);
if (len == 0) return 0;
if (STR_EMBED_P(str)) {
capa = RSTRING_EMBED_LEN_MAX;