diff options
Diffstat (limited to 'include/Path.hpp')
-rw-r--r-- | include/Path.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Path.hpp b/include/Path.hpp index d26f605..46c8dee 100644 --- a/include/Path.hpp +++ b/include/Path.hpp @@ -24,7 +24,7 @@ namespace QuickMedia { const char* filename() const { size_t index = data.rfind('/'); if(index == std::string::npos) - return "/"; + return data.c_str(); return data.c_str() + index + 1; } |