From b12fa9ea63740f886e639d5b94755bd4ebb6d762 Mon Sep 17 00:00:00 2001 From: Yimura Date: Sat, 24 Jul 2021 00:16:43 +0200 Subject: [PATCH] fix(ReceivedEvent): strcat instead of strcpy --- BigBaseV2/src/hooks/received_event.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BigBaseV2/src/hooks/received_event.cpp b/BigBaseV2/src/hooks/received_event.cpp index 93317dcf..0ddee1b7 100644 --- a/BigBaseV2/src/hooks/received_event.cpp +++ b/BigBaseV2/src/hooks/received_event.cpp @@ -57,8 +57,8 @@ namespace big { char msg[64]; strcpy(msg, ""); - strcpy(msg, source_player->get_name()); - strcpy(msg, " is spawning cash."); + strcat(msg, source_player->get_name()); + strcat(msg, " is spawning cash."); } break; @@ -69,8 +69,8 @@ namespace big { char msg[64]; strcpy(msg, "Detected "); - strcpy(msg, source_player->get_name()); - strcpy(msg, " as cheating."); + strcat(msg, source_player->get_name()); + strcat(msg, " as cheating."); notify::above_map(msg);