git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1456 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2005/04/07 07:17:26... | ... |
@@ -443,7 +443,7 @@ int scanstream(int odesc, unsigned long int *scanned, const struct cl_node *root |
443 | 443 |
if(maxsize && (size + btread >= maxsize)) { |
444 | 444 |
btread = (maxsize - size); /* only read up to max */ |
445 | 445 |
|
446 |
- if(!btread) { |
|
446 |
+ if(btread <= 0) { |
|
447 | 447 |
logg("^ScanStream: Size limit reached ( max: %d)\n", maxsize); |
448 | 448 |
break; /* Scan what we have */ |
449 | 449 |
} |