fix string lengths for server kill messages

this fixes several problems with some global variables, since they no
longer get overwritten by null bytes from this oh so important function...
This commit is contained in:
ac-stef
2014-08-29 19:12:04 +02:00
parent d8f39d821a
commit 16bf7c01cf
+2 -2
View File
@@ -946,12 +946,12 @@ struct killmessagesfile : serverconfigfile
{
if(fragmsg)
{
copystring(killmessages[0][gun], message);
copystring(killmessages[0][gun], message, MAXKILLMSGLEN);
logline(ACLOG_VERBOSE, " added msg '%s' for frags with weapon %i ", message, gun);
}
else
{
copystring(killmessages[1][gun], message);
copystring(killmessages[1][gun], message, MAXKILLMSGLEN);
logline(ACLOG_VERBOSE, " added msg '%s' for gibs with weapon %i ", message, gun);
}
}