aboutsummaryrefslogtreecommitdiffstats
path: root/pop2.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-12-24 19:18:02 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-12-24 19:18:02 +0000
commitc844c9b1341d92c81f71d5e3bd1aae5c9faa3c89 (patch)
tree84d6abb638f73f4aa8f724fcd86cc084a5606c8c /pop2.c
parent284bf515ccc81c2a8102973396516016cb403f2f (diff)
downloadfetchmail-c844c9b1341d92c81f71d5e3bd1aae5c9faa3c89.tar.gz
fetchmail-c844c9b1341d92c81f71d5e3bd1aae5c9faa3c89.tar.bz2
fetchmail-c844c9b1341d92c81f71d5e3bd1aae5c9faa3c89.zip
Drop back to using SockGets/SockWrite.
svn path=/trunk/; revision=683
Diffstat (limited to 'pop2.c')
-rw-r--r--pop2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pop2.c b/pop2.c
index 4b389f20..955e634e 100644
--- a/pop2.c
+++ b/pop2.c
@@ -12,6 +12,7 @@
#include <stdlib.h>
#endif
#include "fetchmail.h"
+#include "socket.h"
static int pound_arg, equal_arg;
@@ -22,7 +23,7 @@ int pop2_ok (FILE *sockfp, char *argbuf)
char buf [POPBUFSIZE+1];
pound_arg = equal_arg = -1;
- if (fgets(buf, sizeof(buf), sockfp)) {
+ if (SockGets(buf, sizeof(buf), sockfp)) {
if (buf[strlen(buf)-1] == '\n')
buf[strlen(buf)-1] = '\0';
if (buf[strlen(buf)-1] == '\r')