We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc337aa commit 2ff2ac1Copy full SHA for 2ff2ac1
2 files changed
src/normalize.cpp
@@ -68,9 +68,10 @@ fs_normal(std::string_view path)
68
if (fs_slash_first(path))
69
r.push_back('/');
70
71
- for (const auto& p : parts)
+ for (const auto& p : parts){
72
r += p;
73
74
+ }
75
76
#endif
77
src/pure.cpp
@@ -133,7 +133,7 @@ std::string fs_root(std::string_view path)
133
#else
134
if (std::string r = fs_root_name(path); r.empty()){
135
136
- return std::string(path.substr(0, 1));
+ return std::string(1, path.front());
137
138
return {};
139
} else if (fs_is_windows()) {
0 commit comments