]> sjero.net Git - wget/commitdiff
[svn] Fix infloop in ftp_expected_bytes introduced by the LFS patch.
authorhniksic <devnull@localhost>
Thu, 24 Feb 2005 13:44:19 +0000 (05:44 -0800)
committerhniksic <devnull@localhost>
Thu, 24 Feb 2005 13:44:19 +0000 (05:44 -0800)
src/ChangeLog
src/ftp.c

index f4fb7a16328b02cea5961c047a3ab5946223f5c0..49af189e1436dbbb10de6420921363792d03bf3d 100644 (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>
 
        * mswindows.c (wget_ftello): Removed.
index 3f121a1bf197cad6e162e46724845f5ed825d7df..838f1410d9b66660175e828d152d0ba2c0b5a89c 100644 (file)
--- 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;