From f4dee2d7b9bab7701d2950aeb85489c05ce52ffe Mon Sep 17 00:00:00 2001 From: Dino <8dino2@gmail.com> Date: Mon, 4 Sep 2023 20:15:50 -0400 Subject: [PATCH] Now I know what strdup does --- actionlite/p_client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actionlite/p_client.cpp b/actionlite/p_client.cpp index abb2980..cb7d8b6 100644 --- a/actionlite/p_client.cpp +++ b/actionlite/p_client.cpp @@ -615,7 +615,7 @@ void ClientObituary(edict_t *self, edict_t *inflictor, edict_t *attacker, mod_t //snprintf( death_msg, sizeof(death_msg), message); //sprintf( death_msg, message ); - strdup(death_msg, message); + death_msg = strdup(message); PrintDeathMessage(death_msg, self ); if (!teamplay->value || team_round_going || !ff_afterround->value) { @@ -910,7 +910,7 @@ void ClientObituary(edict_t *self, edict_t *inflictor, edict_t *attacker, mod_t { //sprintf(death_msg, "%s%s %s%s\n", self->client->pers.netname, message, attacker->client->pers.netname, message2); //snprintf(death_msg, sizeof(death_msg), message); - strdup(death_msg, message); + death_msg = strdup(message); PrintDeathMessage(death_msg, self); AddKilledPlayer(attacker, self);