mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-16 07:31:19 +02:00
2019-05-03 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up a compiler warning for rdimport(1).
This commit is contained in:
@@ -1480,14 +1480,18 @@ RDWaveFile *MainObject::FixFile(const QString &filename,RDWaveData *wavedata)
|
||||
//
|
||||
// Copy File
|
||||
//
|
||||
import_temp_fix_filename=
|
||||
QString(tempnam(RDTempDirectory::basePath(),"rdfix"))+QString(".wav");
|
||||
if(import_temp_fix_filename.isNull()) {
|
||||
char tempfile[PATH_MAX];
|
||||
strncpy(tempfile,RDTempDirectory::basePath()+
|
||||
QString().sprintf("/rdimport%dXXXXXX",getpid()),PATH_MAX);
|
||||
int dest_fd=mkstemp(tempfile);
|
||||
if(dest_fd<0) {
|
||||
return NULL;
|
||||
}
|
||||
if(!RDCopy(filename,import_temp_fix_filename)) {
|
||||
import_temp_fix_filename=tempfile;
|
||||
if(!RDCopy(filename,dest_fd)) {
|
||||
return NULL;
|
||||
}
|
||||
close(dest_fd);
|
||||
|
||||
//
|
||||
// Apply Fix
|
||||
|
Reference in New Issue
Block a user