fixed buffer overflow in config parsing

remove all default weapons restrictions
This commit is contained in:
Dmitry 2015-06-15 23:51:13 +03:00
commit 866b6bad64
2 changed files with 3 additions and 3 deletions

View file

@ -482,7 +482,7 @@ void ParseVoiceEvent (const String &base, int type, float timeToRepeat)
void InitConfig (void)
{
File fp;
char line[256];
char line[512];
KeywordFactory replyKey;
@ -812,7 +812,7 @@ void InitConfig (void)
PARSE_VOICE_EVENT (Chatter_CoverMe, 3.5);
PARSE_VOICE_EVENT (Chatter_BehindSmoke, 3.5);
PARSE_VOICE_EVENT (Chatter_BombSiteSecured, 3.5);
}
}
}
fp.Close ();
}