mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-13 21:51:09 +00:00
Commit patch from Jacques Boscq, which will prohibit the calling of memcpy with src=dest
This commit is contained in:
parent
bb47026b5f
commit
99fe055931
1 changed files with 4 additions and 2 deletions
|
@ -1092,8 +1092,10 @@ int FS_FOpenFileRead( const char *filename, fileHandle_t *file, qboolean uniqueF
|
|||
temp = zfi->file;
|
||||
// set the file position in the zip file (also sets the current file info)
|
||||
unzSetCurrentFileInfoPosition(pak->handle, pakFile->pos);
|
||||
// copy the file info into the unzip structure
|
||||
Com_Memcpy( zfi, pak->handle, sizeof(unz_s) );
|
||||
if ( zfi != pak->handle ) {
|
||||
// copy the file info into the unzip structure
|
||||
Com_Memcpy( zfi, pak->handle, sizeof(unz_s) );
|
||||
}
|
||||
// we copy this back into the structure
|
||||
zfi->file = temp;
|
||||
// open the file in the zip
|
||||
|
|
Loading…
Reference in a new issue