Fix path length limitation (pointed out by Daniel)

This commit is contained in:
Yamagi Burmeister 2012-06-24 18:11:55 +02:00
parent 590baaa3e9
commit fd44d3078f

View file

@ -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;
}