aboutsummaryrefslogtreecommitdiffstats
path: root/smtp.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-31 08:49:50 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-31 08:49:50 +0000
commitc2aeabfb67891889fde49b70a5bee8dbfeb7b8de (patch)
tree61ca331ebc7cbc668acc21109140507b8a4be4ab /smtp.c
parent5e5aa7075cefa4a53bcc10359619a366ad712189 (diff)
downloadfetchmail-c2aeabfb67891889fde49b70a5bee8dbfeb7b8de.tar.gz
fetchmail-c2aeabfb67891889fde49b70a5bee8dbfeb7b8de.tar.bz2
fetchmail-c2aeabfb67891889fde49b70a5bee8dbfeb7b8de.zip
STEP 9: We can finally use SockGets here.
svn path=/trunk/; revision=454
Diffstat (limited to 'smtp.c')
-rw-r--r--smtp.c2
1 files changed, 1 insertions, 1 deletions
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);