From db0adff0a2a3b9234974996f6ecc1685f23094d1 Mon Sep 17 00:00:00 2001 From: z411 Date: Mon, 4 Apr 2022 16:00:25 -0400 Subject: [PATCH] Use strcpy for centerprint title --- qcsrc/client/hud/panel/centerprint.qc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/qcsrc/client/hud/panel/centerprint.qc b/qcsrc/client/hud/panel/centerprint.qc index 1cd22b493..307e3c899 100644 --- a/qcsrc/client/hud/panel/centerprint.qc +++ b/qcsrc/client/hud/panel/centerprint.qc @@ -159,10 +159,7 @@ void centerprint_ClearTitle() void centerprint_SetTitle(string title, float offset) { if(title != centerprint_title) { - if(centerprint_title) - strfree(centerprint_title); - - centerprint_title = strzone(CCR(title)); + strcpy(centerprint_title, CCR(title)); centerprint_title_offset = offset; } } -- 2.39.2