From 0edc1a2efbe7d5dfdc97b5c5015e3844273df649 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 1 Oct 2012 13:55:14 +0000 Subject: crash fix in Twitter git-svn-id: http://svn.miranda-ng.org/main/trunk@1744 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/chat.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/protocols/Twitter/chat.cpp b/protocols/Twitter/chat.cpp index f430bdf5d0..5c247f6bdb 100644 --- a/protocols/Twitter/chat.cpp +++ b/protocols/Twitter/chat.cpp @@ -71,14 +71,12 @@ int TwitterProto::OnChatOutgoing(WPARAM wParam,LPARAM lParam) { case GC_USER_MESSAGE: { text = mir_t2a_cp(hook->ptszText,CP_UTF8); - LOG (_T("**Chat - Outgoing message: %s"), text); + LOG (_T("**Chat - Outgoing message: %s"), hook->ptszText); std::string tweet(text); replaceAll(tweet, "%%", "%"); // the chat plugin will turn "%" into "%%", so we have to change it back :/ - LOG (_T("**Chat - Outgoing message after replace: %s"), tweet); - - char * varTweet; + char *varTweet; varTweet = mir_utf8encode(tweet.c_str()); //strncpy(varTweet, tweet.c_str(), tweet.length()+1); -- cgit v1.2.3