From 9adf84a4b6735354893ff1e57c129f66d97d75ee Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Thu, 5 Mar 2009 14:34:35 -0800 Subject: auto import from //depot/cupcake/@136594 --- libs/utils/String16.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/utils/String16.cpp') diff --git a/libs/utils/String16.cpp b/libs/utils/String16.cpp index 1f81cadb7a..ae0ae1e090 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; -- cgit v1.2.3-59-g8ed1b