From 206f15f700b31dc45c2ad6b7c1ec21142d6a38a5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 21 Mar 2017 13:30:53 +0300 Subject: warning fix --- protocols/MSN/src/msn_lists.cpp | 2 +- protocols/MSN/src/msn_misc.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/MSN') diff --git a/protocols/MSN/src/msn_lists.cpp b/protocols/MSN/src/msn_lists.cpp index 8f0b1f064f..c73bfbc9d6 100644 --- a/protocols/MSN/src/msn_lists.cpp +++ b/protocols/MSN/src/msn_lists.cpp @@ -336,7 +336,7 @@ void CMsnProto::MSN_CreateContList(void) } cxml.Append(""); - msnNsThread->sendPacketPayload("PUT", "MSGR\\CONTACTS", "%s", cxml); + msnNsThread->sendPacketPayload("PUT", "MSGR\\CONTACTS", "%s", cxml.c_str()); if (msnP24Ver > 1) msnNsThread->sendPacketPayload("PUT", "MSGR\\SUBSCRIPTIONS", "%sABCH", diff --git a/protocols/MSN/src/msn_misc.cpp b/protocols/MSN/src/msn_misc.cpp index b9fd6955cd..615524ec03 100644 --- a/protocols/MSN/src/msn_misc.cpp +++ b/protocols/MSN/src/msn_misc.cpp @@ -474,7 +474,7 @@ int ThreadData::sendMessage(int, const char *email, int netId, const char *parMs if (*tFontName) buf.AppendFormat("X-MMS-IM-Format: FN=%s; EF=%s; CO=%x; CS=0; PF=31%s\r\n", tFontName, tFontStyle, tFontColor, (parFlags & MSG_RTL) ? ";RL=1" : ""); - buf.AppendFormat("\r\n%s", msgClean); + buf.AppendFormat("\r\n%s", msgClean.c_str()); if (pszNick!=proto->MyOptions.szEmail) db_free(&dbv); parMsg = buf; @@ -887,7 +887,7 @@ void CMsnProto::MsnInvokeMyURL(bool ismail, const char* url) CMStringA hippy(passport); hippy.AppendFormat("/ppsecure/sha1auth.srf?lc=%d&token=%s", itoa(langpref, passport, 10), ptrA(mir_urlEncode(post))); - debugLogA("Starting URL: '%s'", hippy); + debugLogA("Starting URL: '%s'", hippy.c_str()); Utils_OpenUrl(hippy.GetString()); } } -- cgit v1.2.3