diff options
Diffstat (limited to 'protocols/Twitter/src/proto.cpp')
-rw-r--r-- | protocols/Twitter/src/proto.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<char*>(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);
}
|