This commit is contained in:
Jeremy 2023-09-12 18:23:56 -04:00
parent 8bcd2491ee
commit 906687e2db
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -433,7 +433,7 @@ static bool directory_exists(const std::string& path) {
CPPTRACE_MAYBE_UNUSED
static std::string basename(const std::string& path) {
// Assumes no trailing /'s
auto pos = path.rfind("/");
auto pos = path.rfind('/');
if(pos == std::string::npos) {
return path;
} else {