diff options
-rw-r--r-- | smtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |