aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);