changeset 10310 | ca2eb5811a07 |
parent 10208 | 72c00af5c95d |
--- a/src/screenshot.cpp Sun Nov 02 11:15:26 2008 +0000 +++ b/src/screenshot.cpp Sun Nov 02 11:20:15 2008 +0000 @@ -548,7 +548,7 @@ size_t len; if (_game_mode == GM_EDITOR || _game_mode == GM_MENU || _local_company == COMPANY_SPECTATOR) { - ttd_strlcpy(_screenshot_name, "screenshot", lengthof(_screenshot_name)); + strecpy(_screenshot_name, "screenshot", lastof(_screenshot_name)); } else { SetDParam(0, _local_company); SetDParam(1, _date);