summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skypekit/contact.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Skype/src/skypekit/contact.cpp')
-rw-r--r--protocols/Skype/src/skypekit/contact.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Skype/src/skypekit/contact.cpp b/protocols/Skype/src/skypekit/contact.cpp
index e1629fb460..6031837afe 100644
--- a/protocols/Skype/src/skypekit/contact.cpp
+++ b/protocols/Skype/src/skypekit/contact.cpp
@@ -35,10 +35,10 @@ bool CContact::GetFullname(SEString &firstName, SEString &lastName)
SEString fullname;
this->GetPropFullname(fullname);
int pos = fullname.find(" ");
- if (pos && pos < (int)fullname.length())
+ if (pos != -1)
{
- firstName = fullname.substr(0, pos);
- lastName = fullname.right(pos);
+ firstName = fullname.substr(0, pos - 1);
+ lastName = fullname.right(fullname.size() - pos - 1);
} else
firstName = fullname;