diff --git a/src/ChangeLog b/src/ChangeLog index f4fb7a16..49af189e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-02-24 Hrvoje Niksic + + * ftp.c (ftp_expected_bytes): Fix bug that caused infloop because + of not correctly skipping the '(' character. + 2005-02-24 Hrvoje Niksic * mswindows.c (wget_ftello): Removed. diff --git a/src/ftp.c b/src/ftp.c index 3f121a1b..838f1410 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -96,6 +96,7 @@ ftp_expected_bytes (const char *s) ++s; if (!*s) return 0; + ++s; /* skip the '(' */ res = str_to_wgint (s, (char **) &s, 10); if (!*s) return 0;