1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

- Fix build and apparent logic error

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2017-12-22 15:39:32 +00:00
parent 6043c34602
commit c783434de3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=456987

View File

@ -0,0 +1,11 @@
--- src/mdcp.cc.orig 2008-04-13 14:51:16 UTC
+++ src/mdcp.cc
@@ -136,7 +136,7 @@ void *readFile( void * )
pthread_mutex_unlock( &buffer.lock[nb] );
buffer.used[nb] = read( arqIn, buffer.buff[nb], buffer.len );
- if( buffer.used < 0 )
+ if( buffer.used[nb] < 0 )
{
buffer.used[nb] = 0;
end = true;