Skip to content

Commit

Permalink
fix(Vfs): fix an issue with mount_host where the wrong file was mou…
Browse files Browse the repository at this point in the history
…nted when not using MMAP
  • Loading branch information
lmichaelis committed Jun 29, 2024
1 parent ed47bdc commit f942cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Vfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ namespace zenkit {
VfsFileDescriptor {mem.data(), mem.size(), false},
time.count()));
#else
std::ifstream stream {host, std::ios::in | std::ios::ate | std::ios::binary};
std::ifstream stream {path, std::ios::in | std::ios::ate | std::ios::binary};
auto size = stream.tellg();
stream.seekg(0);

Expand Down

0 comments on commit f942cf2

Please sign in to comment.