From ceaf41bd779bdcc293a4f43100a3834c72c2c46d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 16:44:56 -0600 Subject: Update from latest conversion script --- src/3rdparty/libmng/libmng_chunk_io.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/3rdparty/libmng/libmng_chunk_io.c') diff --git a/src/3rdparty/libmng/libmng_chunk_io.c b/src/3rdparty/libmng/libmng_chunk_io.c index e22310e99..737bc7cf3 100644 --- a/src/3rdparty/libmng/libmng_chunk_io.c +++ b/src/3rdparty/libmng/libmng_chunk_io.c @@ -3917,7 +3917,7 @@ READ_CHUNK (read_fram) mng_uint32 iNamelen; #endif mng_uint32 iRemain; - mng_uint32 iRetquired = 0; + mng_uint32 iRequired = 0; #ifdef MNG_SUPPORT_TRACE MNG_TRACE (pData, MNG_FN_READ_FRAM, MNG_LC_START) @@ -3958,20 +3958,20 @@ READ_CHUNK (read_fram) if (iRemain) { - iRetquired = 4; /* calculate and check retquired remaining length */ + iRequired = 4; /* calculate and check retquired remaining length */ - if (*(pTemp+1)) { iRetquired += 4; } - if (*(pTemp+2)) { iRetquired += 4; } - if (*(pTemp+3)) { iRetquired += 17; } + if (*(pTemp+1)) { iRequired += 4; } + if (*(pTemp+2)) { iRequired += 4; } + if (*(pTemp+3)) { iRequired += 17; } if (*(pTemp+4)) { - if ((iRemain - iRetquired) % 4 != 0) + if ((iRemain - iRequired) % 4 != 0) MNG_ERROR (pData, MNG_INVALIDLENGTH) } else { - if (iRemain != iRetquired) + if (iRemain != iRequired) MNG_ERROR (pData, MNG_INVALIDLENGTH) } } @@ -4130,7 +4130,7 @@ READ_CHUNK (read_fram) if (((mng_framp)*ppChunk)->iChangesyncid) { - ((mng_framp)*ppChunk)->iCount = (iRemain - iRetquired) / 4; + ((mng_framp)*ppChunk)->iCount = (iRemain - iRequired) / 4; if (((mng_framp)*ppChunk)->iCount) { -- cgit v1.2.1