commit | 7a4c83922e551506fdc6c5fbca6d107ebdeef867 | [log] [tgz] |
---|---|---|
author | The Android Open Source Project <initial-contribution@android.com> | Thu Mar 05 14:34:35 2009 -0800 |
committer | Alex Ray <aray@google.com> | Tue Jul 30 13:56:49 2013 -0700 |
tree | de87f6c1506f42d898eddaa8d90c70192e356ed2 | |
parent | cbb1011c95e0c25c29e40e203a6a31bccd029da3 [diff] [blame] |
auto import from //depot/cupcake/@136594
diff --git a/libs/utils/String16.cpp b/libs/utils/String16.cpp index 1f81cad..ae0ae1e 100644 --- a/libs/utils/String16.cpp +++ b/libs/utils/String16.cpp
@@ -388,7 +388,7 @@ ->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;