mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Fix path length limitation (pointed out by Daniel)
This commit is contained in:
parent
590baaa3e9
commit
fd44d3078f
1 changed files with 1 additions and 1 deletions
|
@ -603,7 +603,7 @@ Sys_GetHomeDir(void)
|
|||
}
|
||||
|
||||
/* Check if path is too long */
|
||||
if ((len + strlen(CFGDIR) -1) >= 256)
|
||||
if ((len + strlen(CFGDIR) + 3) >= 256)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue