From 114f83d5d8a73b3f1435e09b1d91aff843e4ce15 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Tue, 2 Dec 2014 05:19:23 +0000 Subject: 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 --- protocols/Tlen/src/tlen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Tlen/src/tlen.cpp') diff --git a/protocols/Tlen/src/tlen.cpp b/protocols/Tlen/src/tlen.cpp index 38249081ca..81ef9b9d2e 100644 --- a/protocols/Tlen/src/tlen.cpp +++ b/protocols/Tlen/src/tlen.cpp @@ -239,11 +239,11 @@ int TlenProtocol::OnModulesLoaded(WPARAM wParam, LPARAM lParam) if (db_get_w(hContact, m_szModuleName, "Status", ID_STATUS_OFFLINE) != ID_STATUS_OFFLINE) db_set_w(hContact, m_szModuleName, "Status", ID_STATUS_OFFLINE); - mir_snprintf(str, SIZEOF(str), "%s", LPGEN("Incoming mail")); + strncpy_s(str, LPGEN("Incoming mail"), _TRUNCATE); SkinAddNewSoundEx("TlenMailNotify", m_szModuleName, str); - mir_snprintf(str, SIZEOF(str), "%s", LPGEN("Alert")); + strncpy_s(str, LPGEN("Alert"), _TRUNCATE); SkinAddNewSoundEx("TlenAlertNotify", m_szModuleName, str); - mir_snprintf(str, SIZEOF(str), "%s", LPGEN("Voice chat")); + strncpy_s(str, LPGEN("Voice chat"), _TRUNCATE); SkinAddNewSoundEx("TlenVoiceNotify", m_szModuleName, str); HookProtoEvent(ME_USERINFO_INITIALISE, &TlenProtocol::UserInfoInit); -- cgit v1.2.3