mirror of
https://github.com/ZDoom/wadext.git
synced 2024-11-21 19:32:32 +00:00
parent
1fa15a9674
commit
56d1e69f30
1 changed files with 1 additions and 1 deletions
|
@ -720,7 +720,7 @@ void GrpExtract(const char* filename, FILE* f)
|
|||
{
|
||||
buffer.Resize(fileinfo[i].Size);
|
||||
fileinfo[i].NameWithZero[12] = '\0'; // Be sure filename is null-terminated
|
||||
if (fileinfo[i].Size != fread(&buffer[0], 1, fileinfo[i].Size, f)) return;
|
||||
if (buffer.Size() != fread(&buffer[0], 1, buffer.Size(), f)) return;
|
||||
FILE* fout = fopen(fileinfo[i].NameWithZero, "wb");
|
||||
if (fout)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue