X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/4388f060552cc537e71e957d32f35e9d75a61233..1546d4af2ed1219a41ef4170bf188f2ab91442e6:/icuSources/tools/genrb/ustr.c diff --git a/icuSources/tools/genrb/ustr.c b/icuSources/tools/genrb/ustr.c index faa03ade..15f76a80 100644 --- a/icuSources/tools/genrb/ustr.c +++ b/icuSources/tools/genrb/ustr.c @@ -1,7 +1,9 @@ +// © 2016 and later: Unicode, Inc. and others. +// License & terms of use: http://www.unicode.org/copyright.html /* ******************************************************************************* * -* Copyright (C) 1998-2011, International Business Machines +* Copyright (C) 1998-2012, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -20,6 +22,7 @@ #include "cstring.h" #include "unicode/ustring.h" #include "unicode/putil.h" +#include "unicode/utf16.h" /* Protos */ static void ustr_resize(struct UString *s, int32_t len, UErrorCode *status); @@ -91,7 +94,7 @@ ustr_cpy(struct UString *dst, if(src->fChars == NULL || dst->fChars == NULL){ return; } - uprv_memcpy(dst->fChars, src->fChars, sizeof(UChar) * src->fLength); + u_memcpy(dst->fChars, src->fChars, src->fLength); dst->fLength = src->fLength; dst->fChars[dst->fLength] = 0x0000; }