2021-06-01 Fred Gleason <fredg@paravelsystems.com>

* Cleaned up compile warnings in nextgen_filter(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-06-01 18:39:20 -04:00
parent eb5bb116f3
commit 53918da9a8
2 changed files with 5 additions and 3 deletions

View File

@ -21812,3 +21812,5 @@
'lib/rdweb.[cpp|h]'.
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warnings in caed(8).
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warnings in nextgen_filter(1).

View File

@ -176,7 +176,7 @@ MainObject::MainObject(QObject *parent)
// Create Temp Directory
//
strncpy(tempdir,(RDTempDirectory::basePath()+"/nexgen_filterXXXXXX").toUtf8(),
PATH_MAX);
PATH_MAX-1);
filter_temp_dir=new QDir(mkdtemp(tempdir));
filter_temp_audiofile=filter_temp_dir->canonicalPath()+"/audio.dat";
@ -269,10 +269,10 @@ void MainObject::ProcessArchive(const QString &filename)
}
for(uint32_t i=blksize;i<len;i+=blksize) {
n=read(fd_in,data,blksize);
write(fd_out,data,n);
RDCheckExitCode("ProcessArchive() write",write(fd_out,data,n));
}
n=read(fd_in,data,len%blksize);
write(fd_out,data,n);
RDCheckExitCode("ProcessArchive() write",write(fd_out,data,n));
close(fd_out);
}
close(fd_in);