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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user