diff options
author | frosch <frosch@openttd.org> | 2014-04-23 20:44:42 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-04-23 20:44:42 +0000 |
commit | ef4c2ce0317ae583e837722b6a41ea44cd83da71 (patch) | |
tree | c0c3d77ac495a6b9257cd7de4dadc6712db1acc8 /src/os/os2 | |
parent | 56e8ea6ddef08eb6ad1a28d06dddecb902e1bc04 (diff) | |
download | openttd-ef4c2ce0317ae583e837722b6a41ea44cd83da71.tar.xz |
(svn r26485) -Codechange: Replace ttd_strlcpy and ttd_strlcat with strecpy and strecat.
Diffstat (limited to 'src/os/os2')
-rw-r--r-- | src/os/os2/os2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/os2/os2.cpp b/src/os/os2/os2.cpp index 283104d08..e62b96850 100644 --- a/src/os/os2/os2.cpp +++ b/src/os/os2/os2.cpp @@ -177,7 +177,7 @@ int CDECL main(int argc, char *argv[]) return openttd_main(argc, argv); } -bool GetClipboardContents(char *buffer, size_t buff_len) +bool GetClipboardContents(char *buffer, const char *last) { /* XXX -- Currently no clipboard support implemented with GCC */ #ifndef __INNOTEK_LIBC__ @@ -189,7 +189,7 @@ bool GetClipboardContents(char *buffer, size_t buff_len) if (text != NULL) { - ttd_strlcpy(buffer, text, buff_len); + strecpy(buffer, text, last); WinCloseClipbrd(hab); return true; } |