ssh-store: fix length when writing nar
This fixes nix copy and other things that use copyStorePath.
This commit is contained in:
		
							parent
							
								
									11a7f8ce14
								
							
						
					
					
						commit
						2cb8aaa610
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -62,9 +62,9 @@ public: | |||
|     ForwardSource(Source & readSource, Sink & writeSink) : readSource(readSource), writeSink(writeSink) {} | ||||
|     size_t read(unsigned char * data, size_t len) override | ||||
|     { | ||||
|         auto res = readSource.read(data, len); | ||||
|         writeSink(data, len); | ||||
|         return res; | ||||
|         auto n = readSource.read(data, len); | ||||
|         writeSink(data, n); | ||||
|         return n; | ||||
|     } | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue