summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libmng/libmng_chunk_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/libmng/libmng_chunk_io.c')
-rw-r--r--src/3rdparty/libmng/libmng_chunk_io.c16
1 files changed, 8 insertions, 8 deletions
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)
{