"Index: overflow" Error beseitigt

This commit is contained in:
Yamagi Burmeister 2009-03-04 13:06:17 +00:00
parent 71d8526080
commit f60b40b4a3
1 changed files with 1 additions and 1 deletions

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