From a03db251268ba4761e2e1e4122adb2ef213bb229 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Thu, 28 Sep 2000 21:53:39 +0000 Subject: [PATCH] * nio-ftp.cc (ftp_line): handle continuations more robustly --- ChangeLog | 4 ++++ nio-ftp.cc | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index cf84b223..296c93ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2000-09-28 DJ Delorie + + * nio-ftp.cc (ftp_line): handle continuations more robustly + 2000-09-14 Brian Keener * res.rc: increased the size of the site dialog (IDD_SITE) & the diff --git a/nio-ftp.cc b/nio-ftp.cc index 917d9f19..c2429b0d 100644 --- a/nio-ftp.cc +++ b/nio-ftp.cc @@ -22,11 +22,12 @@ static char *cvsid = "\n%%% $Id$\n"; #include "winsock.h" #include #include +#include #include "resource.h" #include "state.h" #include "simpsock.h" -#include "msg.h" +#include "log.h" #include "netio.h" #include "nio-ftp.h" @@ -42,7 +43,8 @@ ftp_line (SimpleSocket *s) { do { last_line = s->gets (); - } while (last_line && last_line[3] != ' '); + log (LOG_BABBLE, "ftp > %s", last_line); + } while (last_line && (!isdigit (last_line[0]) || last_line[3] != ' ')); return atoi (last_line ?: "0"); } -- 2.43.5