From 238cf89924fe33f03ceea5e4997d2ba0776530d3 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 6 Nov 1996 04:03:49 +0000 Subject: Back out the attempt to use stdio. svn path=/trunk/; revision=488 --- pop2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pop2.c') diff --git a/pop2.c b/pop2.c index 2a7d4839..a501c624 100644 --- a/pop2.c +++ b/pop2.c @@ -11,6 +11,7 @@ #if defined(STDC_HEADERS) #include #endif +#include "socket.h" #include "fetchmail.h" static int pound_arg, equal_arg; @@ -24,9 +25,9 @@ char *argbuf; char buf [POPBUFSIZE+1]; pound_arg = equal_arg = -1; - if (fgets(buf, sizeof(buf), sockfp) != (char *)NULL) { + if (SockGets(buf, sizeof(buf), sockfp) >= 0) { if (outlevel == O_VERBOSE) - fprintf(stderr,"%s",buf); + fprintf(stderr,"%s\n",buf); if (buf[0] == '+') ok = 0; -- cgit v1.2.3