mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
Fix filename string bounds check in kzipopen()
git-svn-id: https://svn.eduke32.com/eduke32@7029 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
c67cdc00f8
commit
c2f26439d1
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ static intptr_t kzipopen(const char *filnam)
|
|||
char newst[BMAX_PATH+8];
|
||||
|
||||
newst[0] = '|';
|
||||
for (i=0; filnam[i] && (i < sizeof(newst)-2); i++) newst[i+1] = filnam[i];
|
||||
for (i=0; i < BMAX_PATH+4 && filnam[i]; i++) newst[i+1] = filnam[i];
|
||||
newst[i+1] = 0;
|
||||
return kzopen(newst);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue