]> sjero.net Git - wget/blobdiff - src/ftp.c
[svn] Fix infloop in ftp_expected_bytes introduced by the LFS patch.
[wget] / src / ftp.c
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;