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

* Cleaned up compile warnings in 'lib/rdcut.cpp'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-06-01 11:18:24 -04:00
parent 489c42cb29
commit 6566dfc75a
2 changed files with 5 additions and 2 deletions

View File

@@ -21768,3 +21768,5 @@
* Removed 'IncrementIndex()', 'GetLock()' and 'ClearLock()' functions
from 'lib/rdconf.[cpp|h]'.
* Cleaned up compile warning in 'lib/rdconf.cpp'.
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warnings in 'lib/rdcut.cpp'.

View File

@@ -1799,13 +1799,14 @@ bool RDCut::FileCopy(const QString &srcfile,const QString &destfile) const
}
buf=(char *)malloc(dest_stat.st_blksize);
while((n=read(src_fd,buf,dest_stat.st_blksize))==dest_stat.st_blksize) {
write(dest_fd,buf,dest_stat.st_blksize);
RDCheckExitCode("RDCut::FileCopy write",
write(dest_fd,buf,dest_stat.st_blksize));
bytes+=dest_stat.st_blksize;
if((step=10*bytes/src_stat.st_size)!=previous_step) {
previous_step=step;
}
}
write(dest_fd,buf,n);
RDCheckExitCode("RDCut::FileCopy write",write(dest_fd,buf,n));
free(buf);
close(src_fd);
close(dest_fd);