diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-02 05:19:23 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-02 05:19:23 +0000 |
commit | 114f83d5d8a73b3f1435e09b1d91aff843e4ce15 (patch) | |
tree | 0805188bf6bcf5749d1e76d5d1e73ccb6cf41cc4 /protocols/Dummy/src | |
parent | 6e2b6b31bae6d69bff5271451e73eb08637b8118 (diff) |
mir_snprintf(..., "%s", ...) -> strncpy_s(...)
build fix to prevous commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@11212 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Dummy/src')
-rw-r--r-- | protocols/Dummy/src/dummy_proto.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Dummy/src/dummy_proto.cpp b/protocols/Dummy/src/dummy_proto.cpp index 4343018c35..72819d962b 100644 --- a/protocols/Dummy/src/dummy_proto.cpp +++ b/protocols/Dummy/src/dummy_proto.cpp @@ -75,7 +75,7 @@ DWORD_PTR CDummyProto::GetCaps(int type, MCONTACT hContact) if (uniqueIdSetting[0] == '\0') { ptrA setting(getStringA(DUMMY_ID_TEXT)); if (setting != NULL) - mir_snprintf(uniqueIdSetting, SIZEOF(uniqueIdSetting), "%s", setting); + strncpy_s(uniqueIdSetting, setting, _TRUNCATE); } return (DWORD_PTR)uniqueIdSetting; @@ -83,7 +83,7 @@ DWORD_PTR CDummyProto::GetCaps(int type, MCONTACT hContact) if (uniqueIdText[0] == '\0') { ptrA setting(getStringA(DUMMY_ID_SETTING)); if (setting != NULL) - mir_snprintf(uniqueIdText, SIZEOF(uniqueIdText), "%s", setting); + strncpy_s(uniqueIdText, setting, _TRUNCATE); } return (DWORD_PTR)uniqueIdText; } |