fx wrong cast

This commit is contained in:
wmayer
2016-09-03 14:58:03 +02:00
parent fb892d35de
commit a3fe1f2e77

View File

@@ -187,7 +187,7 @@ std::string FileInfo::getTempFileName(const char* FileName, const char* Path)
buf += "/fileXXXXXX";
}
int id = mkstemp(static_cast<char*>(buf.c_str());
int id = mkstemp(const_cast<char*>(buf.c_str()));
if (id > -1) {
FILE* file = fdopen(id, "w");
fclose(file);