From 25b8dcd3e31a9b09ce6180d34273d68242791d79 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 16 Sep 2013 13:47:55 +0000 Subject: removed not needed _MSC_VER checks git-svn-id: http://svn.miranda-ng.org/main/trunk@6085 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/src/proto.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Twitter') diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp index 4130ce44a3..bbf450035b 100644 --- a/protocols/Twitter/src/proto.cpp +++ b/protocols/Twitter/src/proto.cpp @@ -474,7 +474,7 @@ void TwitterProto::SendTweetWorker(void *p) if (p == 0) return; - char *text = static_cast(p); + char *text = mir_utf8encode((char *)p); if (strlen(text) > 140) { // looks like the chat max outgoing msg thing doesn't work, so i'll do it here. TCHAR errorPopup[280]; mir_sntprintf(errorPopup,SIZEOF(errorPopup), _T("Don't be crazy! Everyone knows the max tweet size is 140, and you're trying to fit %d chars in there?"), strlen(text)); @@ -483,7 +483,7 @@ void TwitterProto::SendTweetWorker(void *p) } ScopedLock s(twitter_lock_); - twit_.set_status(text); + twit_.set_status((char *)p); mir_free(text); } -- cgit v1.2.3