diff options
Diffstat (limited to 'plugins/Spamotron')
-rw-r--r-- | plugins/Spamotron/src/utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Spamotron/src/utils.cpp b/plugins/Spamotron/src/utils.cpp index 7d70522e45..345f3316ce 100644 --- a/plugins/Spamotron/src/utils.cpp +++ b/plugins/Spamotron/src/utils.cpp @@ -6,7 +6,7 @@ TCHAR *_tcstolower(TCHAR *dst) { if (dst == NULL) return NULL; - setlocale(LC_ALL, ""); + SIZE_T dst_len = _tcslen(dst); for (SIZE_T i = 0; i < dst_len; i ++) dst[i] = _totlower(dst[i]); @@ -17,7 +17,7 @@ TCHAR *_tcstoupper(TCHAR *dst) { if (dst == NULL) return NULL; - setlocale(LC_ALL, ""); + SIZE_T dst_len = _tcslen(dst); for (SIZE_T i = 0; i < dst_len; i ++) dst[i] = _totupper(dst[i]); |