ICU-200 Updated with OS/400 specific port changes.

X-SVN-Rev: 460
This commit is contained in:
Helena Chapman 1999-12-23 18:40:27 +00:00
parent 16ac11f546
commit 16429edff1

View File

@ -843,15 +843,16 @@ int32_t ucnv_toUChars (const UConverter * converter,
/*Removes all state info on the UConverter */
ucnv_reset (&myConverter);
myTarget_limit = target + targetSize - 1;
if(myTarget_limit < target) /*if targetsize is such that the limit*/
myTarget_limit = ((UChar*)U_MAX_PTR) - 1; /* would wrap around, truncate it. */
/*Not in pure pre-flight mode */
if (targetSize > 0)
{
{
myTarget_limit = target + targetSize - 1;
/*if targetsize is such that the limit*/
if (myTarget_limit < target) {
/* would wrap around, truncate it. */
myTarget_limit = ((UChar*)U_MAX_PTR) - 1;
}
/*Not in pure pre-flight mode */
ucnv_toUnicode (&myConverter,
&myTarget,