cope with crappy windoze ftp servers
authorEric Andersen <andersen@codepoet.org>
Tue, 11 Mar 2003 18:03:39 +0000 (18:03 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 11 Mar 2003 18:03:39 +0000 (18:03 -0000)
networking/wget.c

index bd74cc88f8d5c4bf4ba7ab303dfc94922cfd1734..7154faa11e15bb7d3a76d0f61e7bcd7c37051d4e 100644 (file)
@@ -639,7 +639,7 @@ static int ftpcmd(char *s1, char *s2, FILE *fp, char *buf)
        
        if (s1) {
                if (!s2) s2="";
-               fprintf(fp, "%s%s\n", s1, s2);
+               fprintf(fp, "%s%s\r\n", s1, s2);
                fflush(fp);
        }
        
@@ -824,7 +824,7 @@ progressmeter(int flag)
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- *     $Id: wget.c,v 1.51 2002/07/12 00:04:46 sandman Exp $
+ *     $Id: wget.c,v 1.52 2003/03/11 18:03:39 andersen Exp $
  */