mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
ICU-8440 fix bad call to uprv_memset
X-SVN-Rev: 29963
This commit is contained in:
parent
d45cd683ea
commit
b9b87b48cd
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
******************************************************************************
|
||||
*
|
||||
* Copyright (C) 2010, International Business Machines
|
||||
* Copyright (C) 2011, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
******************************************************************************
|
||||
|
@ -70,7 +70,7 @@ void DecimalNumberString::setLength(int32_t length, UErrorCode &status) {
|
|||
return;
|
||||
}
|
||||
if (length > fLength) {
|
||||
uprv_memset(&fText[fLength], length - fLength, 0);
|
||||
uprv_memset(&fText[fLength], 0, length - fLength);
|
||||
}
|
||||
fLength = length;
|
||||
fText[fLength] = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue