Fix FTP-SIZE to read reply until the end of the string.
This commit is contained in:
		
							parent
							
								
									a4810b4cae
								
							
						
					
					
						commit
						101109e785
					
				|  | @ -206,9 +206,8 @@ | |||
| (define (ftp-size connection file) | ||||
|   (let* ((reply (ftp-send-command connection | ||||
| 				  (format #f "SIZE ~a" file)))) | ||||
|     (and (string? reply) | ||||
|          (string->number (substring reply | ||||
|                                     4 (- (string-length reply) 1)))))) | ||||
|     (string->number (substring reply | ||||
| 			       4 (string-length reply))))) | ||||
| 
 | ||||
| ;; Abort the current data transfer. Maybe we should close the data | ||||
| ;; socket? | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 sperber
						sperber