use the safer mkstemp instead of tmpnam

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4839 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2006-12-08 12:20:58 +00:00
parent 069aa18e9f
commit ab5977c0ad
2 changed files with 13 additions and 9 deletions

View file

@ -166,6 +166,8 @@ int main( int argc, char * argv[] ) {
targetCRC->mode = TChecksum::MD5; // default
string tempFileName = POSIX::getTempFile();
if (tempFileName == "")
return 2;
// open the files
bifstream source;