summaryrefslogtreecommitdiff
path: root/plugins/YARelay/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/YARelay/src/main.cpp')
-rw-r--r--plugins/YARelay/src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/YARelay/src/main.cpp b/plugins/YARelay/src/main.cpp
index 6cacf14429..e41a97859c 100644
--- a/plugins/YARelay/src/main.cpp
+++ b/plugins/YARelay/src/main.cpp
@@ -158,7 +158,7 @@ static int MessageEventAdded(WPARAM wParam, LPARAM lParam)
ci.dwFlag = CNF_UNIQUEID;
if (CallService(MS_CONTACT_GETCONTACTINFO, 0, (long)&ci) == 0){
if (ci.type == CNFT_ASCIIZ)
- _tcsncpy_s(buf, ci.pszVal, SIZEOF(buf));
+ _tcsncpy_s(buf, ci.pszVal, _TRUNCATE);
else if (ci.type == CNFT_BYTE)
mir_sntprintf(buf, SIZEOF(buf), _T("%u"), ci.bVal);
else if (ci.type == CNFT_WORD)