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:
@@ -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"),
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user