mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r1102) -Fix: [Console] 'set server_pw' was acting crazy when you typed more
chars then it could take
This commit is contained in:
parent
a4a3d829be
commit
d7d3ff4849
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue