Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Dec 22, 2024
1 parent 7d16d1e commit b43dc4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mapgen/earth/hgt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ const auto http_to_file = [](const std::string &url, const std::string &zipfull)
return uintmax_t{0};
}

std::ofstream(zipfull) << res.data;
std::ofstream(zipfull, std::ios_base::binary) << res.data;
if (!std::filesystem::exists(zipfull)) {
return uintmax_t{0};
}
Expand Down Expand Up @@ -267,7 +267,7 @@ const auto multi_http_to_file = [](const auto &zipfile,
//<< " || " << "curl -o " << zipfull << " https://viewfinderpanoramas.org/dem3/" << zipfile
<< "\n";

std::ofstream(zipfull) << ""; // create zero file
std::ofstream(zipfull, std::ios_base::binary) << ""; // create zero file
return std::filesystem::file_size(zipfull);
};

Expand Down

0 comments on commit b43dc4b

Please sign in to comment.