aboutsummaryrefslogtreecommitdiffstats
path: root/smtp.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-12-17 20:53:10 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-12-17 20:53:10 +0000
commitb85d71b67a2743272f46c85bf479b1051171193d (patch)
treef828606268e283fa4d36ec6fb91ffc5fb19d9402 /smtp.c
parentf034d4af6612be9fc2b393855ec5ac95d548d5d8 (diff)
downloadfetchmail-b85d71b67a2743272f46c85bf479b1051171193d.tar.gz
fetchmail-b85d71b67a2743272f46c85bf479b1051171193d.tar.bz2
fetchmail-b85d71b67a2743272f46c85bf479b1051171193d.zip
SockGets is gone.
svn path=/trunk/; revision=650
Diffstat (limited to 'smtp.c')
-rw-r--r--smtp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/smtp.c b/smtp.c
index 0133e5a9..877e2e5c 100644
--- a/smtp.c
+++ b/smtp.c
@@ -95,11 +95,12 @@ int SMTP_eom(FILE *sockfp)
int SMTP_ok(FILE *sockfp)
/* returns status of SMTP connection */
{
- int n;
- char buf[SMTPBUFSIZE];
+ char buf[SMTPBUFSIZE], *ip;
- while ((n = SockGets(buf, sizeof(buf)-1, sockfp)) > 0)
+ while ((ip = fgets(buf, sizeof(buf)-1, sockfp)))
{
+ int n = strlen(ip);
+
if (n < 4)
return SM_ERROR;
buf[n] = '\0';