summaryrefslogtreecommitdiff
path: root/src/os/os2
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/os2')
-rw-r--r--src/os/os2/os2.cpp4
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;
}