diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-15 10:34:06 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-15 10:34:06 +0000 |
commit | b516a20d71e175b8af8ae076cbf0303243210b66 (patch) | |
tree | f02fd61b33aad8804a61f69ee032d2942c1d5aff /string.c | |
parent | f22e484a70bc5f1478d2bd78a0d1994d5bb384aa (diff) | |
download | ruby-b516a20d71e175b8af8ae076cbf0303243210b66.tar.gz ruby-b516a20d71e175b8af8ae076cbf0303243210b66.tar.xz ruby-b516a20d71e175b8af8ae076cbf0303243210b66.zip |
* string.c (rb_str_drop_bytes): use memmove.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |