Skip to content

Commit

Permalink
Fix #2500.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Aug 12, 2010
1 parent f8f021b commit 36067ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/com/enterprisedt/net/ftp/FTPClient.java
Expand Up @@ -501,11 +501,10 @@ public BufferedReader stat(String pathname) throws IOException, FTPException {
}
catch(IndexOutOfBoundsException e) {
log.error("Failed parsing line '" + line + "':" + e.getMessage());
continue;
}
}
else {
result.append(line.trim()).append('\n');
result.append(line).append('\n');
}
}
return new BufferedReader(new StringReader(result.toString()));
Expand Down Expand Up @@ -581,6 +580,7 @@ public BufferedReader dir(String encoding, String command) throws IOException, F
return new BufferedReader(new InputStreamReader(data.getInputStream(),
Charset.forName(encoding)
)) {
@Override
public String readLine() throws IOException {
String line = super.readLine();
if(null != line) {
Expand Down

0 comments on commit 36067ad

Please sign in to comment.