From 6c24da0dad1477fb0585eefac19349dd60f37c3f Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 29 Mar 2014 21:58:08 -0400 Subject: setup: Eliminate use of unsafe string functions. Eliminate use of strcpy, strcat, strncpy, and use the new safe alternatives. --- src/setup/txt_keyinput.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/setup/txt_keyinput.c') diff --git a/src/setup/txt_keyinput.c b/src/setup/txt_keyinput.c index 55889dbc..f5f7b562 100644 --- a/src/setup/txt_keyinput.c +++ b/src/setup/txt_keyinput.c @@ -23,6 +23,7 @@ #include #include "doomkeys.h" +#include "m_misc.h" #include "txt_keyinput.h" #include "txt_gui.h" @@ -110,7 +111,7 @@ static void TXT_KeyInputDrawer(TXT_UNCAST_ARG(key_input)) if (*key_input->variable == 0) { - strcpy(buf, "(none)"); + M_StringCopy(buf, "(none)", sizeof(buf)); } else { -- cgit v1.2.3