diff options
Diffstat (limited to 'plugins/Boltun/src')
-rw-r--r-- | plugins/Boltun/src/boltun.cpp | 8 | ||||
-rw-r--r-- | plugins/Boltun/src/config.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Boltun/src/boltun.cpp b/plugins/Boltun/src/boltun.cpp index 13fbecfee9..7a3796ecc9 100644 --- a/plugins/Boltun/src/boltun.cpp +++ b/plugins/Boltun/src/boltun.cpp @@ -67,11 +67,11 @@ void UpdateEngine() TCHAR* GetFullName(const TCHAR* filename)
{
- size_t flen = _tcslen(filename);
+ size_t flen = mir_tstrlen(filename);
TCHAR* fullname = const_cast<TCHAR*>(filename);
if (!_tcschr(filename, _T(':')))
{
- size_t plen = _tcslen(path);
+ size_t plen = mir_tstrlen(path);
fullname = new TCHAR[plen + flen + 1];
fullname[0] = NULL;
_tcscat(fullname, path);
@@ -390,8 +390,8 @@ static INT_PTR CALLBACK EngineDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LP TCHAR* mind = TranslateTS(MIND_FILE_DESC);
TCHAR* anyfile = TranslateTS(ALL_FILES_DESC);
- size_t l = _tcslen(MIND_DIALOG_FILTER)
- + _tcslen(mind) + _tcslen(anyfile);
+ size_t l = mir_tstrlen(MIND_DIALOG_FILTER)
+ + mir_tstrlen(mind) + mir_tstrlen(anyfile);
TCHAR *filt = new TCHAR[l];
mir_sntprintf(filt, l, MIND_DIALOG_FILTER, mind, anyfile);
for (size_t i = 0; i < l; i++)
diff --git a/plugins/Boltun/src/config.cpp b/plugins/Boltun/src/config.cpp index 40517216c1..c92db86fdf 100644 --- a/plugins/Boltun/src/config.cpp +++ b/plugins/Boltun/src/config.cpp @@ -58,7 +58,7 @@ inline TCHAR* GetString(char* key, const TCHAR* def) inline const TCHAR* SetString(char* key, const TCHAR* value)
{
- size_t len = _tcslen(value) + 1;
+ size_t len = mir_tstrlen(value) + 1;
TCHAR* val = new TCHAR[len];
_tcscpy_s(val, len, value);
db_set_ts(NULL, BOLTUN_KEY, key, val);
|