fix a nasty buffer overflow found by OptiMus

This commit is contained in:
Bill Currie 2002-10-25 21:07:20 +00:00
parent 01a7740f1b
commit d605394a8d

View file

@ -493,7 +493,7 @@ Team_ResetTimers (void)
{
int i;
for (i = 0; f_replies[i].name; i++)
for (i = 0; i < sizeof (f_replies) / sizeof (f_replies[0]); i++)
f_replies[i].lasttime = realtime - cl_freply->value;
return;
}