summaryrefslogtreecommitdiff
path: root/src/core/stdauth/auth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/stdauth/auth.cpp')
-rw-r--r--src/core/stdauth/auth.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/stdauth/auth.cpp b/src/core/stdauth/auth.cpp
index f2cfaa041b..df3ea40221 100644
--- a/src/core/stdauth/auth.cpp
+++ b/src/core/stdauth/auth.cpp
@@ -75,7 +75,7 @@ static int AuthEventAdded(WPARAM, LPARAM lParam)
if (!CallService(MS_CONTACT_GETCONTACTINFO, 0, (LPARAM)&ci)) {
switch (ci.type) {
case CNFT_ASCIIZ:
- mir_sntprintf(szUid, SIZEOF(szUid), _T("%s"), ci.pszVal);
+ _tcsncpy_s(szUid, ci.pszVal, _TRUNCATE);
mir_free(ci.pszVal);
break;