/*
******************************************************************************
*
-* Copyright (C) 2001-2011, International Business Machines
+* Copyright (C) 2001-2012, International Business Machines
* Corporation and others. All Rights Reserved.
*
******************************************************************************
}
/* Faster loop without ongoing checking for pSrcLimit and pDestLimit. */
- pSrcLimit = pSrc + srcLength;
+ pSrcLimit = (pSrc == NULL) ? NULL : pSrc + srcLength;
for(;;) {
count = (int32_t)(pDestLimit - pDest);
srcLength = (int32_t)(pSrcLimit - pSrc);