]> Pileus Git - ~andy/fetchmail/commitdiff
STEP 9: We can finally use SockGets here.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 31 Oct 1996 08:49:50 +0000 (08:49 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 31 Oct 1996 08:49:50 +0000 (08:49 -0000)
svn path=/trunk/; revision=454

smtp.c

diff --git a/smtp.c b/smtp.c
index 86c9fb7a8f8af36ca30cd1b9e9dcd438873034bc..475b847af6deaceaf678f15a0ef6f70a8424ec08 100644 (file)
--- 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);