mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-26 15:20:29 +01:00
Replace hardcoded "/tmp" by RDTempFile()
This commit is contained in:
@@ -65,7 +65,7 @@ bool RDTextFile(const QString &data)
|
||||
proc->launch("");
|
||||
delete proc;
|
||||
#else
|
||||
strcpy(tmpfile,"/tmp/rdreportXXXXXX");
|
||||
strcpy(tmpfile,RDTempDir()+"/rdreportXXXXXX");
|
||||
int fd=mkstemp(tmpfile);
|
||||
if(fd<0) {
|
||||
QMessageBox::warning(NULL,"File Error","Unable to create temporary file");
|
||||
|
||||
Reference in New Issue
Block a user