ezeql / ftp4go

Automatically exported from code.google.com/p/ftp4go
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Incorrect parsing of SIZE 213 response #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. call the ftp.Size() method on a file

What is the expected output?

An int

What do you see instead?

A panic (slice bounds out of range) at client.go:404

Please provide any additional information below.

Fix to line 404...

size, _ = strconv.Atoi(strings.TrimSpace(response.Message))

Original issue reported on code.google.com by BenDagl...@gmail.com on 1 Aug 2014 at 2:27