diff options
author | 2009-03-05 14:34:35 -0800 | |
---|---|---|
committer | 2009-03-05 14:34:35 -0800 | |
commit | 4df2423a947bcd3f024cc3d3a1a315a8dc428598 (patch) | |
tree | e7dac2c5a367b169e7f05a36058cf470e93f003b /libs/utils/String16.cpp | |
parent | c474dec3ffa1c0fe37edb3e701684188f7e8e7bc (diff) |
auto import from //depot/cupcake/@136594
Diffstat (limited to 'libs/utils/String16.cpp')
-rw-r--r-- | libs/utils/String16.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/utils/String16.cpp b/libs/utils/String16.cpp index 1f81cadb7a4c..ae0ae1e0909b 100644 --- a/libs/utils/String16.cpp +++ b/libs/utils/String16.cpp @@ -388,7 +388,7 @@ status_t String16::setTo(const char16_t* other, size_t len) ->editResize((len+1)*sizeof(char16_t)); if (buf) { char16_t* str = (char16_t*)buf->data(); - memcpy(str, other, len*sizeof(char16_t)); + memmove(str, other, len*sizeof(char16_t)); str[len] = 0; mString = str; return NO_ERROR; |