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