]> Pileus Git - ~andy/fetchmail/blobdiff - pop2.c
Drop back to using SockGets/SockWrite.
[~andy/fetchmail] / pop2.c
diff --git a/pop2.c b/pop2.c
index 4b389f20cd64adb0395524ac30e61e6e529e9374..955e634ee51841769bf4edeae8424df63bc6a6dd 100644 (file)
--- 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')