summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-01 13:55:14 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-01 13:55:14 +0000
commit0edc1a2efbe7d5dfdc97b5c5015e3844273df649 (patch)
treebc993cbe52b63d54331fe1123ee1d9a41bb0b802 /protocols
parentfbec3120eb8cb6dcefa0543380cef95042245d24 (diff)
crash fix in Twitter
git-svn-id: http://svn.miranda-ng.org/main/trunk@1744 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Twitter/chat.cpp6
1 files 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);