From a9d9335b20a0b708fae1b978f70348aec998356a Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 1 Apr 2014 21:49:16 -0400 Subject: textscreen: Use safe string functions. Define TXT_{StringCopy,StringConcat,snprintf,vsnprintf} as analogs of the m_misc.c versions so that the textscreen library does not need a dependency on the Doom code, and change all textscreen code to use these instead of unsafe functions. This fixes #372. --- src/setup/txt_keyinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/setup/txt_keyinput.c') diff --git a/src/setup/txt_keyinput.c b/src/setup/txt_keyinput.c index f5f7b562..a35f22e1 100644 --- a/src/setup/txt_keyinput.c +++ b/src/setup/txt_keyinput.c @@ -115,7 +115,7 @@ static void TXT_KeyInputDrawer(TXT_UNCAST_ARG(key_input)) } else { - TXT_GetKeyDescription(*key_input->variable, buf); + TXT_GetKeyDescription(*key_input->variable, buf, sizeof(buf)); } TXT_SetWidgetBG(key_input); -- cgit v1.2.3