diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-06 04:03:49 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-06 04:03:49 +0000 |
commit | 238cf89924fe33f03ceea5e4997d2ba0776530d3 (patch) | |
tree | 7b31a64cb01e8c22fcbc5d02c4a60779f7bdc31a /pop2.c | |
parent | f7af7a861c301ac43600e2da965692233e877d4d (diff) | |
download | fetchmail-238cf89924fe33f03ceea5e4997d2ba0776530d3.tar.gz fetchmail-238cf89924fe33f03ceea5e4997d2ba0776530d3.tar.bz2 fetchmail-238cf89924fe33f03ceea5e4997d2ba0776530d3.zip |
Back out the attempt to use stdio.
svn path=/trunk/; revision=488
Diffstat (limited to 'pop2.c')
-rw-r--r-- | pop2.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -11,6 +11,7 @@ #if defined(STDC_HEADERS) #include <stdlib.h> #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; |