summaryrefslogtreecommitdiff
path: root/src/win32.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2008-11-02 11:20:15 +0000
committerskidd13 <skidd13@openttd.org>2008-11-02 11:20:15 +0000
commit9b282b3e51864af68b752831f68d719e9926c206 (patch)
tree852231dcb9853107b3876ca33a89cbeb47f20133 /src/win32.cpp
parent44a774a2775bfdbf270eac3adcd778e1ae4cba93 (diff)
downloadopenttd-9b282b3e51864af68b752831f68d719e9926c206.tar.xz
(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible
Diffstat (limited to 'src/win32.cpp')
-rw-r--r--src/win32.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/win32.cpp b/src/win32.cpp
index 24bb976b3..27be2d8a1 100644
--- a/src/win32.cpp
+++ b/src/win32.cpp
@@ -803,7 +803,7 @@ void FiosGetDrives()
fios->type = FIOS_TYPE_DRIVE;
fios->mtime = 0;
snprintf(fios->name, lengthof(fios->name), PATHSEP "");
- ttd_strlcpy(fios->title, fios->name, lengthof(fios->title));
+ strecpy(fios->title, fios->name, lastof(fios->title));
#else
TCHAR drives[256];
const TCHAR *s;
@@ -814,7 +814,7 @@ void FiosGetDrives()
fios->type = FIOS_TYPE_DRIVE;
fios->mtime = 0;
snprintf(fios->name, lengthof(fios->name), "%c:", s[0] & 0xFF);
- ttd_strlcpy(fios->title, fios->name, lengthof(fios->title));
+ strecpy(fios->title, fios->name, lastof(fios->title));
while (*s++ != '\0') { /* Nothing */ }
}
#endif
@@ -1127,7 +1127,7 @@ bool InsertTextBufferClipboard(Textbuf *tb)
cbuf = GetClipboardData(CF_TEXT);
ptr = (const char*)GlobalLock(cbuf);
- ttd_strlcpy(utf8_buf, FS2OTTD(ptr), lengthof(utf8_buf));
+ strecpy(utf8_buf, FS2OTTD(ptr), lastof(utf8_buf));
GlobalUnlock(cbuf);
CloseClipboard();