summaryrefslogtreecommitdiff
path: root/protocols/MRA
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-16 13:51:05 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-16 13:51:05 +0000
commit5c39998e831c982812d1a6c7b9747f695c4dbeef (patch)
treede081af4ffbbe14e53829311ec84832aa28bd7bb /protocols/MRA
parenteefe0f0d556fbf3d77602d0a99b9134505050756 (diff)
as well as wcsncpy_s / wcsncat_s
git-svn-id: http://svn.miranda-ng.org/main/trunk@9830 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA')
-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;
}