[bug fix]: dirname building single char string wrong.

This commit is contained in:
Alec Jacobson
2018-09-25 23:30:51 -04:00
parent 4220a5f169
commit dc4c3379b4
+1 -1
View File
@@ -33,7 +33,7 @@ IGL_INLINE std::string igl::dirname(const std::string & path)
}else if(1 == (last_slash.base() - path.begin()))
{
// Slash is first char
return std::string(&del);
return std::string(1,del);
}else if(path.end() == last_slash.base() )
{
// Slash is last char