From: terencehill Date: Mon, 30 Sep 2024 22:06:15 +0000 (+0200) Subject: Fix wrong usage of dpsnprintf X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=582559b5e5d00dd51d7ab2b443fe2c059e510309;p=xonotic%2Fdarkplaces.git Fix wrong usage of dpsnprintf --- 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; } }