From 30ee89a6764a8d38a078374c6ed5de70635b42c0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 16 Aug 2013 10:57:40 +0000 Subject: rest or mir_*printf in protocols git-svn-id: http://svn.miranda-ng.org/main/trunk@5715 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tlen/src/jabber_svc.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'protocols/Tlen/src/jabber_svc.cpp') diff --git a/protocols/Tlen/src/jabber_svc.cpp b/protocols/Tlen/src/jabber_svc.cpp index 43886efe9a..9f8110f01d 100644 --- a/protocols/Tlen/src/jabber_svc.cpp +++ b/protocols/Tlen/src/jabber_svc.cpp @@ -831,7 +831,7 @@ HANDLE __cdecl TlenProtocol::SendFile(HANDLE hContact, const PROTOCHAR* szDescri db_free(&dbv); id = JabberSerialNext(this); - _snprintf(idStr, sizeof(idStr), "%d", id); + mir_snprintf(idStr, sizeof(idStr), "%d", id); if ((item=JabberListAdd(this, LIST_FILE, idStr)) != NULL) { ft->iqId = mir_strdup(idStr); nick = JabberNickFromJID(ft->jid); @@ -1237,28 +1237,28 @@ void TlenInitServicesVTbl(TlenProtocol *proto) { char s[128]; - sprintf(s, "%s%s", proto->m_szModuleName, PS_GETNAME); + mir_snprintf(s, SIZEOF(s), "%s%s", proto->m_szModuleName, PS_GETNAME); CreateServiceFunction_Ex(s, proto, TlenGetName); - sprintf(s, "%s%s", proto->m_szModuleName, PS_GETAVATARINFO); + mir_snprintf(s, SIZEOF(s), "%s%s", proto->m_szModuleName, PS_GETAVATARINFO); CreateServiceFunction_Ex(s, proto, TlenGetAvatarInfo); - sprintf(s, "%s%s", proto->m_szModuleName, PS_SEND_NUDGE); + mir_snprintf(s, SIZEOF(s), "%s%s", proto->m_szModuleName, PS_SEND_NUDGE); CreateServiceFunction_Ex(s, proto, TlenSendAlert); - sprintf(s, "%s%s", proto->m_szModuleName, PS_GETAVATARCAPS); + mir_snprintf(s, SIZEOF(s), "%s%s", proto->m_szModuleName, PS_GETAVATARCAPS); CreateServiceFunction_Ex(s, proto, TlenGetAvatarCaps); - sprintf(s, "%s%s", proto->m_szModuleName, PS_SETMYAVATART); + mir_snprintf(s, SIZEOF(s), "%s%s", proto->m_szModuleName, PS_SETMYAVATART); CreateServiceFunction_Ex(s, proto, TlenSetMyAvatar); - sprintf(s, "%s%s", proto->m_szModuleName, PS_GETMYAVATART); + mir_snprintf(s, SIZEOF(s), "%s%s", proto->m_szModuleName, PS_GETMYAVATART); CreateServiceFunction_Ex(s, proto, TlenGetMyAvatar); - sprintf(s, "%s%s", proto->m_szModuleName, PS_GETSTATUS); + mir_snprintf(s, SIZEOF(s), "%s%s", proto->m_szModuleName, PS_GETSTATUS); CreateServiceFunction_Ex(s, proto, TlenGetStatus); - sprintf(s, "%s%s", proto->m_szModuleName, PS_CREATEACCMGRUI); + mir_snprintf(s, SIZEOF(s), "%s%s", proto->m_szModuleName, PS_CREATEACCMGRUI); CreateServiceFunction_Ex(s, proto, TlenAccMgrUI); } @@ -1272,7 +1272,7 @@ TlenProtocol::TlenProtocol( const char *aProtoName, const TCHAR *aUserName) : InitializeCriticalSection(&csSend); char text[_MAX_PATH]; - sprintf(text, "%s/%s", m_szModuleName, "Nudge"); + mir_snprintf(text, SIZEOF(text), "%s/%s", m_szModuleName, "Nudge"); hTlenNudge = CreateProtoEvent(text); HookEventObj_Ex(ME_SYSTEM_MODULESLOADED, this, TlenSystemModulesLoaded); -- cgit v1.2.3