Fix another buffer overflow, this time when writing the config.cfg

This overflow is a problem on all platforms but manifested itself
especially on a german Windows XP due to it's long profile path.
This commit is contained in:
Yamagi Burmeister 2012-06-10 18:45:14 +02:00
parent 6c2f97927e
commit e8eea857e4

View file

@ -578,7 +578,7 @@ void CL_InitLocal (void)
void CL_WriteConfiguration (void)
{
FILE *f;
char path[MAX_QPATH];
char path[MAX_OSPATH];
if (cls.state == ca_uninitialized)
return;