Mercurial > hg > dmlib
diff src/stb_image.c @ 1076:21b0aedb7b5c
Also initialize DMZLibContext.inBufferStart where needed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 02 Mar 2015 04:46:34 +0200 |
parents | e98bc627ad08 |
children | f88ad5cb44e5 |
line wrap: on
line diff
--- a/src/stb_image.c Mon Mar 02 04:17:30 2015 +0200 +++ b/src/stb_image.c Mon Mar 02 04:46:34 2015 +0200 @@ -3713,8 +3713,8 @@ goto err; } - ctx.inBuffer = (Uint8 *) inBuf; - ctx.inBufferEnd = (Uint8 *) inBuf + inLen; + ctx.inBuffer = ctx.inBufferStart = inBuf; + ctx.inBufferEnd = inBuf + inLen; ctx.outBufferEnd = ctx.outBufferStart + initialSize; ctx.expandable = TRUE;