1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Fix infloop in ftp_expected_bytes introduced by the LFS patch.

This commit is contained in:
hniksic 2005-02-24 05:44:19 -08:00
parent f80f35d480
commit 2e48de2b01
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-02-24 Hrvoje Niksic <hniksic@xemacs.org>
* ftp.c (ftp_expected_bytes): Fix bug that caused infloop because
of not correctly skipping the '(' character.
2005-02-24 Hrvoje Niksic <hniksic@xemacs.org> 2005-02-24 Hrvoje Niksic <hniksic@xemacs.org>
* mswindows.c (wget_ftello): Removed. * mswindows.c (wget_ftello): Removed.

View File

@ -96,6 +96,7 @@ ftp_expected_bytes (const char *s)
++s; ++s;
if (!*s) if (!*s)
return 0; return 0;
++s; /* skip the '(' */
res = str_to_wgint (s, (char **) &s, 10); res = str_to_wgint (s, (char **) &s, 10);
if (!*s) if (!*s)
return 0; return 0;