diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-09-16 13:47:55 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-09-16 13:47:55 +0000 |
commit | 25b8dcd3e31a9b09ce6180d34273d68242791d79 (patch) | |
tree | 7070e154406e1ca15577dea410fc7a4c076c22df /protocols/Twitter/src/proto.cpp | |
parent | b80e5c3c33cff078b6e01ef79fd83bb176d6d00a (diff) |
removed not needed _MSC_VER checks
git-svn-id: http://svn.miranda-ng.org/main/trunk@6085 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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);
}
|