fix valgrind leanpsk read error

This commit is contained in:
toddouska 2012-11-29 17:18:41 -08:00
parent ea3dc2361d
commit c50f73b4cb
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ static INLINE void array_add(byte* d, word32 dLen, byte* s, word32 sLen)
if (dLen > 0 && sLen > 0 && dLen >= sLen) {
int sIdx, dIdx;
for (sIdx = dLen - 1, dIdx = dLen - 1; sIdx >= 0; dIdx--, sIdx--)
for (sIdx = sLen - 1, dIdx = dLen - 1; sIdx >= 0; dIdx--, sIdx--)
{
carry += d[dIdx] + s[sIdx];
d[dIdx] = carry;