summaryrefslogtreecommitdiff
path: root/plugins/Boltun/src/config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Boltun/src/config.cpp')
-rw-r--r--plugins/Boltun/src/config.cpp2
1 files changed, 1 insertions, 1 deletions
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);