From 3ac3ac7289b56bb64765e233b55cdeeb68ddd956 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Mon, 14 Mar 2022 12:19:38 +0100 Subject: [PATCH] make sure weapon widget string is always terminated Glitch introduced by variable gap width for unavailable weapons. --- Source/hu_stuff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/hu_stuff.c b/Source/hu_stuff.c index 18622536..257aace7 100644 --- a/Source/hu_stuff.c +++ b/Source/hu_stuff.c @@ -1305,6 +1305,7 @@ void HU_Drawer(void) } // transfer the init string to the widget + hud_weapstr[i] = '\0'; s = hud_weapstr; while (*s) HUlib_addCharToTextLine(&w_weapon, *s++);