summaryrefslogtreecommitdiff
path: root/console_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'console_cmds.c')
-rw-r--r--console_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console_cmds.c b/console_cmds.c
index 3f5e892af..53f8c45ab 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -606,7 +606,7 @@ DEF_CONSOLE_CMD(ConSet) {
_network_game_info.server_password[0] = '\0';
_network_game_info.use_password = 0;
} else {
- strncpy(_network_game_info.server_password, argv[2], sizeof(_network_game_info.server_password));
+ ttd_strlcpy(_network_game_info.server_password, argv[2], sizeof(_network_game_info.server_password));
_network_game_info.use_password = 1;
}
IConsolePrintF(_iconsole_color_warning, "Game-password changed to '%s'", _network_game_info.server_password);