Fix author name parsing

This commit is contained in:
Ilari Liusvaara 2011-09-19 21:44:05 +03:00
parent d2ac8d9c3c
commit d9ed993a4a

View file

@ -103,7 +103,7 @@ std::pair<std::string, std::string> split_author(const std::string& author) thro
std::string fullname;
std::string nickname;
size_t split = _author.find_first_of("|");
if(!split) {
if(split >= _author.length()) {
fullname = _author;
} else {
fullname = _author.substr(0, split);