(svn r26485) -Codechange: Replace ttd_strlcpy and ttd_strlcat with strecpy and strecat.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user