We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19e23e8 commit 20b8b34Copy full SHA for 20b8b34
src/mtconnect/sink/rest_sink/rest_service.cpp
@@ -296,7 +296,7 @@ namespace mtconnect {
296
{
297
using unique_file = std::unique_ptr<std::FILE, decltype(&std::fclose)>;
298
unique_ptr<char[]> buffer(new char[fc->m_size]);
299
- unique_file file(std::fopen(fc->m_path.c_str(), "rb"), &std::fclose);
+ unique_file file(std::fopen(reinterpret_cast<const char *>(fc->m_path.c_str()), "rb"), &std::fclose);
300
if (!file)
301
throw std::runtime_error("Cannot open file for reading");
302
0 commit comments