fs/FileSystem, ...: use AllocatedPath::FromFS(string_view)

This commit is contained in:
Max Kellermann
2020-04-03 15:57:53 +02:00
parent 91c75a133f
commit 56b4b010d6
4 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ LookupFile(Path pathname)
//its a file ?
if (file_info.IsRegular()) {
//so the upper should be file
return {AllocatedPath::FromFS(buffer.c_str()), AllocatedPath::FromFS(slash + 1)};
return {AllocatedPath::FromFS(buffer), AllocatedPath::FromFS(slash + 1)};
} else {
return {};
}