fx wrong cast

This commit is contained in:
wmayer
2016-09-03 14:58:03 +02:00
parent 3c88edd007
commit 848a685c53

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);