summaryrefslogtreecommitdiff
path: root/src/setup/txt_joybinput.c
diff options
context:
space:
mode:
authorSimon Howard2014-03-29 21:58:08 -0400
committerSimon Howard2014-03-29 21:58:08 -0400
commit6c24da0dad1477fb0585eefac19349dd60f37c3f (patch)
treeefb7e6886d31f3377b4635f210520d2fa94238bf /src/setup/txt_joybinput.c
parenteb3a4033c7d6f1d5e042edd5f416bbc257e40975 (diff)
downloadchocolate-doom-6c24da0dad1477fb0585eefac19349dd60f37c3f.tar.gz
chocolate-doom-6c24da0dad1477fb0585eefac19349dd60f37c3f.tar.bz2
chocolate-doom-6c24da0dad1477fb0585eefac19349dd60f37c3f.zip
setup: Eliminate use of unsafe string functions.
Eliminate use of strcpy, strcat, strncpy, and use the new safe alternatives.
Diffstat (limited to 'src/setup/txt_joybinput.c')
-rw-r--r--src/setup/txt_joybinput.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/setup/txt_joybinput.c b/src/setup/txt_joybinput.c
index 3e033df9..ce466d50 100644
--- a/src/setup/txt_joybinput.c
+++ b/src/setup/txt_joybinput.c
@@ -27,6 +27,7 @@
#include "doomkeys.h"
#include "joystick.h"
+#include "m_misc.h"
#include "txt_joybinput.h"
#include "txt_gui.h"
@@ -137,7 +138,7 @@ static void TXT_JoystickInputDrawer(TXT_UNCAST_ARG(joystick_input))
if (*joystick_input->variable < 0)
{
- strcpy(buf, "(none)");
+ M_StringCopy(buf, "(none)", sizeof(buf));
}
else
{