From c2aeabfb67891889fde49b70a5bee8dbfeb7b8de Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 31 Oct 1996 08:49:50 +0000 Subject: STEP 9: We can finally use SockGets here. svn path=/trunk/; revision=454 --- smtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'smtp.c') diff --git a/smtp.c b/smtp.c index 86c9fb7a..475b847a 100644 --- a/smtp.c +++ b/smtp.c @@ -104,7 +104,7 @@ static int SMTP_check(FILE *sockfp,char *argbuf) int ok; char buf[SMTPBUFSIZE]; - if ((ok = read(fileno(sockfp), buf, sizeof(buf)-1)) > 0) { + if ((ok = SockGets(buf, sizeof(buf)-1, sockfp)) > 0) { buf[ok] = '\0'; if (outlevel == O_VERBOSE) fprintf(stderr, "SMTP< %s", buf); -- cgit v1.2.3