summaryrefslogtreecommitdiff
path: root/protocols/Twitter/src/connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Twitter/src/connection.cpp')
-rw-r--r--protocols/Twitter/src/connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Twitter/src/connection.cpp b/protocols/Twitter/src/connection.cpp
index 78a7e9be4f..f2622b29fa 100644
--- a/protocols/Twitter/src/connection.cpp
+++ b/protocols/Twitter/src/connection.cpp
@@ -291,7 +291,7 @@ void CTwitterProto::UpdateAvatarWorker(void *p)
if (username.IsEmpty())
return;
- CMStringA ext = data->url.Right(data->url.ReverseFind('.')); // finds the filetype of the avatar
+ CMStringA ext = data->url.Mid(data->url.ReverseFind('.')); // finds the filetype of the avatar
CMStringW filename(FORMAT, L"%s\\%S%S", GetAvatarFolder().c_str(), username.c_str(), ext.c_str()); // local filename and path
PROTO_AVATAR_INFORMATION ai = { 0 };