mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-4790 Use uprv_malloc instead of malloc.
X-SVN-Rev: 25715
This commit is contained in:
parent
5c3b41f836
commit
6e910600d8
1 changed files with 1 additions and 1 deletions
|
@ -449,7 +449,7 @@ static UChar * convertFromUTF8(UChar *outBuf, int32_t outBufCapacity, int32_t *o
|
|||
UChar *dest = outBuf;
|
||||
u_strFromUTF8(dest, outBufCapacity, outputLength, in, inLength, status);
|
||||
if (*status == U_BUFFER_OVERFLOW_ERROR) {
|
||||
dest = static_cast<UChar *>(malloc(*outputLength * sizeof(UChar)));
|
||||
dest = static_cast<UChar *>(uprv_malloc(*outputLength * sizeof(UChar)));
|
||||
if (dest == NULL) {
|
||||
*status = U_MEMORY_ALLOCATION_ERROR;
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue