diff options
author | skidd13 <skidd13@openttd.org> | 2008-11-02 11:20:15 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2008-11-02 11:20:15 +0000 |
commit | 706dd0f86c2453eadb44742ca62d6c5d690e9238 (patch) | |
tree | 852231dcb9853107b3876ca33a89cbeb47f20133 /src/screenshot.cpp | |
parent | c03e55b32a4b9bf64c516d38ce75ff5c8ab39748 (diff) | |
download | openttd-706dd0f86c2453eadb44742ca62d6c5d690e9238.tar.xz |
(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible
Diffstat (limited to 'src/screenshot.cpp')
-rw-r--r-- | src/screenshot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screenshot.cpp b/src/screenshot.cpp index 49bc132b6..f667ecf2f 100644 --- a/src/screenshot.cpp +++ b/src/screenshot.cpp @@ -548,7 +548,7 @@ static char *MakeScreenshotName(const char *ext) 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); |