summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/MRA/src/Mra_proto.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/MRA/src/Mra_proto.cpp b/protocols/MRA/src/Mra_proto.cpp
index 1f189c83a5..48d3c8ccdf 100644
--- a/protocols/MRA/src/Mra_proto.cpp
+++ b/protocols/MRA/src/Mra_proto.cpp
@@ -959,19 +959,19 @@ bool CMraProto::CmdAnketaInfo(int seq, BinBuffer &buf)
}
else if (fld == "Domain") { // имя было уже задано ранее
buf >> val;
- wcsncpy_s(szEmail, _A2T(mralpsUsernameValue + "@" + val), SIZEOF(szEmail));
+ wcsncpy_s(szEmail, _A2T(mralpsUsernameValue + "@" + val), _TRUNCATE);
}
else if (fld == "Nickname") {
buf >> valW;
- wcsncpy_s(szNick, valW, SIZEOF(szNick));
+ wcsncpy_s(szNick, valW, _TRUNCATE);
}
else if (fld == "FirstName") {
buf >> valW;
- wcsncpy_s(szFirstName, valW, SIZEOF(szFirstName));
+ wcsncpy_s(szFirstName, valW, _TRUNCATE);
}
else if (fld == "LastName") {
buf >> valW;
- wcsncpy_s(szLastName, valW, SIZEOF(szLastName));
+ wcsncpy_s(szLastName, valW, _TRUNCATE);
}
else buf >> val;
}