From 582559b5e5d00dd51d7ab2b443fe2c059e510309 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 1 Oct 2024 00:06:15 +0200 Subject: [PATCH] Fix wrong usage of dpsnprintf --- console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/console.c b/console.c index c6929ac2..b7866375 100644 --- a/console.c +++ b/console.c @@ -1634,9 +1634,9 @@ void Chat_NicksBar_Build(void) if (cl.scores[next].name[0]) { if (next_players_count == 0) - len += dpsnprintf(chat_nicksbarstring, sizeof(chat_nicksbarstring), "%s^8, ...", chat_nicksbarstring); + len += dpsnprintf(chat_nicksbarstring + len, sizeof(chat_nicksbarstring), "%s^8, ...", chat_nicksbarstring); else - len += dpsnprintf(chat_nicksbarstring, sizeof(chat_nicksbarstring), "%s^8, #%d ^7%s", chat_nicksbarstring, next + 1, cl.scores[next].name); + len += dpsnprintf(chat_nicksbarstring + len, sizeof(chat_nicksbarstring), "%s^8, #%d ^7%s", chat_nicksbarstring, next + 1, cl.scores[next].name); --next_players_count; } } -- 2.39.2