mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Fix the hack for File::c_str to work (#1242)
This commit is contained in:
@@ -254,7 +254,7 @@ static std::vector<size_t> readAtFile(std::filesystem::path const &path,
|
||||
std::vector<char> &argPool) {
|
||||
File file;
|
||||
if (!file.open(path, std::ios_base::in)) {
|
||||
fatal("Error reading @%s: %s", file.c_str(path), strerror(errno));
|
||||
fatal("Error reading @%s: %s", file.string(path).c_str(), strerror(errno));
|
||||
}
|
||||
|
||||
// We only filter out `EOF`, but calling `isblank()` on anything else is UB!
|
||||
|
||||
Reference in New Issue
Block a user