summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-15 10:34:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-15 10:34:06 +0000
commita98587c0fdfc2536e94b320bf4c1b06c6628df03 (patch)
treef02fd61b33aad8804a61f69ee032d2942c1d5aff /string.c
parent7f0c5beb6f53cc057c03c74e15468282b1e52cd5 (diff)
* string.c (rb_str_drop_bytes): use memmove.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18645 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 75b6b1ec63..10ac53b96c 100644
--- a/string.c
+++ b/string.c
@@ -2836,7 +2836,7 @@ rb_str_drop_bytes(VALUE str, long len)
STR_SET_EMBED(str);
STR_SET_EMBED_LEN(str, nlen);
ptr = RSTRING(str)->as.ary;
- memcpy(ptr, oldptr + len, nlen);
+ memmove(ptr, oldptr + len, nlen);
if (fl == STR_NOEMBED) xfree(oldptr);
}
else {