mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-09 23:11:39 +00:00
Fix stupid potentially-crashy bug.
This commit is contained in:
parent
dae5b66365
commit
03e5fe3954
1 changed files with 1 additions and 1 deletions
|
@ -805,7 +805,7 @@ FILE *FSZIP_Deflate(FILE *src, qofs_t srcsize, qofs_t outsize, const char *entry
|
|||
return NULL;
|
||||
}
|
||||
}
|
||||
fwrite(outbuffer, 1, strm.total_out, of);
|
||||
fwrite(outbuffer, 1, strm.next_out - outbuffer, of);
|
||||
inflateEnd(&strm);
|
||||
fclose(src);
|
||||
|
||||
|
|
Loading…
Reference in a new issue