Tweak
This commit is contained in:
		
							parent
							
								
									f87e286e82
								
							
						
					
					
						commit
						dce8af59a6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -44,7 +44,7 @@ static void dumpContents(const Path & path, size_t size,
 | 
				
			||||||
    size_t left = size;
 | 
					    size_t left = size;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    while (left > 0) {
 | 
					    while (left > 0) {
 | 
				
			||||||
        size_t n = left > buf.size() ? buf.size() : left;
 | 
					        auto n = std::min(left, buf.size());
 | 
				
			||||||
        readFull(fd.get(), buf.data(), n);
 | 
					        readFull(fd.get(), buf.data(), n);
 | 
				
			||||||
        left -= n;
 | 
					        left -= n;
 | 
				
			||||||
        sink(buf.data(), n);
 | 
					        sink(buf.data(), n);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue