Replace hardcoded "/tmp" by RDTempFile()

This commit is contained in:
Alban Peignier
2014-09-05 10:47:01 +02:00
parent 3fc6006444
commit f6dc4712d4
4 changed files with 3 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ CdRipper::CdRipper(QString cutname,RDCddbRecord *rec,RDLibraryConf *conf,
// Create Temporary Directory
//
char path[PATH_MAX];
strncpy(path,RIPPER_TEMP_DIR,PATH_MAX);
strncpy(path,RDTempDir(),PATH_MAX);
strcat(path,"/XXXXXX");
if(mkdtemp(path)==NULL) {
QMessageBox::warning(this,"RDLibrary - "+tr("Ripper Error"),

View File

@@ -86,7 +86,7 @@ DiskRipper::DiskRipper(QString *filter,QString *group,QString *schedcode,
// Create Temporary Directory
//
char path[PATH_MAX];
strncpy(path,RIPPER_TEMP_DIR,PATH_MAX);
strncpy(path,RDTempDir(),PATH_MAX);
strcat(path,"/XXXXXX");
if(mkdtemp(path)==NULL) {
QMessageBox::warning(this,"RDLibrary - "+tr("Ripper Error"),