ICU-5427 Fix a valgrind warning when ICU is optimized.

X-SVN-Rev: 21732
This commit is contained in:
George Rhoten 2007-06-14 15:27:15 +00:00
parent b51f7c7357
commit b38ccd76ca

View File

@ -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;
}
}
}