changeset 87:8e9aa5d79c82

Irccd: fix fs::baseName
author David Demelier <markand@malikania.fr>
date Thu, 07 Apr 2016 13:20:58 +0200
parents 39fe49d294c8
children 1c616f54d688
files lib/irccd/fs.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/irccd/fs.cpp	Tue Apr 05 23:01:35 2016 +0200
+++ b/lib/irccd/fs.cpp	Thu Apr 07 13:20:58 2016 +0200
@@ -133,9 +133,9 @@
 	auto pos = path.find_last_of("\\/");
 
 	if (pos != std::string::npos)
-		path = path.substr(0, pos + 1);
+		path = path.substr(pos + 1);
 
-	return path.substr(pos + 1);
+	return path;
 }
 
 std::string dirName(std::string path)