From b85d71b67a2743272f46c85bf479b1051171193d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 17 Dec 1996 20:53:10 +0000 Subject: SockGets is gone. svn path=/trunk/; revision=650 --- smtp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'smtp.c') 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'; -- cgit v1.2.3