Skip to content

Commit

Permalink
fx wrong cast
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Sep 3, 2016
1 parent 3c88edd commit 848a685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Base/FileInfo.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 848a685

Please sign in to comment.