diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-12-24 19:18:02 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-12-24 19:18:02 +0000 |
commit | c844c9b1341d92c81f71d5e3bd1aae5c9faa3c89 (patch) | |
tree | 84d6abb638f73f4aa8f724fcd86cc084a5606c8c /pop3.c | |
parent | 284bf515ccc81c2a8102973396516016cb403f2f (diff) | |
download | fetchmail-c844c9b1341d92c81f71d5e3bd1aae5c9faa3c89.tar.gz fetchmail-c844c9b1341d92c81f71d5e3bd1aae5c9faa3c89.tar.bz2 fetchmail-c844c9b1341d92c81f71d5e3bd1aae5c9faa3c89.zip |
Drop back to using SockGets/SockWrite.
svn path=/trunk/; revision=683
Diffstat (limited to 'pop3.c')
-rw-r--r-- | pop3.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -17,6 +17,7 @@ #endif #include "fetchmail.h" +#include "socket.h" #define PROTOCOL_ERROR {error(0, 0, "protocol error"); return(PS_ERROR);} @@ -29,7 +30,7 @@ int pop3_ok (FILE *sockfp, char *argbuf) char buf [POPBUFSIZE+1]; char *bufp; - 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') @@ -168,7 +169,7 @@ static int pop3_getrange(FILE *sockfp, struct query *ctl, int*countp, int*newp) int num; *newp = 0; - while (fgets(buf, sizeof(buf), sockfp)) + while (SockGets(buf, sizeof(buf), sockfp)) { if (buf[strlen(buf)-1] == '\n') buf[strlen(buf)-1] = '\0'; @@ -205,7 +206,7 @@ static int pop3_getsizes(FILE *sockfp, int count, int *sizes) { char buf [POPBUFSIZE+1]; - while (fgets(buf, sizeof(buf), sockfp)) + while (SockGets(buf, sizeof(buf), sockfp)) { int num, size; |