From c16bfe00dc27525c03e36cca6930abe5a9fd43a7 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 10 May 2013 18:31:32 +0000 Subject: - added search by names git-svn-id: http://svn.miranda-ng.org/main/trunk@4624 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skypekit/contact.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Skype/src/skypekit') 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; -- cgit v1.2.3