"Index: overflow" Error beseitigt

This commit is contained in:
Yamagi Burmeister 2009-03-04 13:06:17 +00:00
parent 71d8526080
commit f60b40b4a3

View file

@ -46,7 +46,7 @@ int SV_FindIndex (char *name, int start, int max, qboolean create)
if (i == max)
Com_Error (ERR_DROP, "*Index: overflow");
strncpy (sv.configstrings[start+i], name, sizeof(sv.configstrings[i]-1));
strncpy (sv.configstrings[start+i], name, sizeof(sv.configstrings[i]));
if (sv.state != ss_loading)
{ // send the update to everyone