mirror of https://github.com/bjornbytes/lovr.git
Add even more padding to stb zlib;
This commit is contained in:
parent
e82d8e9cc1
commit
895589c914
|
@ -571,7 +571,7 @@ static bool zip_read(Archive* archive, const char* path, size_t bytes, size_t* b
|
|||
*bytesRead = (bytes == (size_t) -1 || bytes > dstSize) ? (uint32_t) dstSize : bytes;
|
||||
|
||||
if (compressed) {
|
||||
srcSize++; // pad buffer to fix an stb_image "bug"
|
||||
srcSize += 4; // pad buffer to fix an stb_image "bug"
|
||||
if (stbi_zlib_decode_noheader_buffer(*dst, (int) dstSize, src, (int) srcSize) < 0) {
|
||||
free(*dst);
|
||||
*dst = NULL;
|
||||
|
|
Loading…
Reference in New Issue