ICU-5427 Fix a valgrind warning when ICU is optimized.
X-SVN-Rev: 21732
This commit is contained in:
parent
b51f7c7357
commit
b38ccd76ca
@ -741,10 +741,11 @@ expandLamAlef(UChar *dest, int32_t sourceLength,
|
||||
}
|
||||
|
||||
if(countr > 0) {
|
||||
uprv_memcpy(tempbuffer, tempbuffer+countr, sourceLength*U_SIZEOF_UCHAR);
|
||||
uprv_memmove(tempbuffer, tempbuffer+countr, sourceLength*U_SIZEOF_UCHAR);
|
||||
if(u_strlen(tempbuffer) < sourceLength) {
|
||||
for(i=sourceLength-1;i>=sourceLength-countr;i--)
|
||||
for(i=sourceLength-1;i>=sourceLength-countr;i--) {
|
||||
tempbuffer[i] = 0x0020;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user