1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

ftp_get_line: Reflow some code.

This commit is contained in:
Miciah Dashiel Butler Masters 2006-06-09 21:43:18 +00:00 committed by Miciah Dashiel Butler Masters
parent e1ea1cf2bb
commit 2d49225db3

View File

@ -1176,12 +1176,12 @@ ftp_get_line(struct cache_entry *cached, unsigned char *buf, int bufl,
return 1;
}
} else {
if (!last && bufl < FTP_BUF_SIZE) {
return -1;
if (last || bufl >= FTP_BUF_SIZE) {
*len = bufl;
return 0;
}
*len = bufl;
return 0;
return -1;
}
}