fix(ReceivedEvent): strcat instead of strcpy
This commit is contained in:
parent
9f8e3597fb
commit
773a2fe0e6
@ -57,8 +57,8 @@ namespace big
|
||||
{
|
||||
char msg[64];
|
||||
strcpy(msg, "<C>");
|
||||
strcpy(msg, source_player->get_name());
|
||||
strcpy(msg, "</C> is spawning cash.");
|
||||
strcat(msg, source_player->get_name());
|
||||
strcat(msg, "</C> is spawning cash.");
|
||||
}
|
||||
|
||||
break;
|
||||
@ -69,8 +69,8 @@ namespace big
|
||||
{
|
||||
char msg[64];
|
||||
strcpy(msg, "Detected <C>");
|
||||
strcpy(msg, source_player->get_name());
|
||||
strcpy(msg, "</C> as cheating.");
|
||||
strcat(msg, source_player->get_name());
|
||||
strcat(msg, "</C> as cheating.");
|
||||
|
||||
notify::above_map(msg);
|
||||
|
||||
|
Reference in New Issue
Block a user