summaryrefslogtreecommitdiff
path: root/src/setup/txt_keyinput.c
diff options
context:
space:
mode:
authorSimon Howard2014-04-01 21:49:16 -0400
committerSimon Howard2014-04-01 21:49:16 -0400
commita9d9335b20a0b708fae1b978f70348aec998356a (patch)
tree9d775843fddbffaa9babdf54221b0ac98105dc91 /src/setup/txt_keyinput.c
parent17c14e1fad6dc277a6e58e4f421d5c65e210d1fe (diff)
downloadchocolate-doom-a9d9335b20a0b708fae1b978f70348aec998356a.tar.gz
chocolate-doom-a9d9335b20a0b708fae1b978f70348aec998356a.tar.bz2
chocolate-doom-a9d9335b20a0b708fae1b978f70348aec998356a.zip
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.
Diffstat (limited to 'src/setup/txt_keyinput.c')
-rw-r--r--src/setup/txt_keyinput.c2
1 files changed, 1 insertions, 1 deletions
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);