#include <stdlib.h>
#endif
#include "fetchmail.h"
+#include "socket.h"
static int pound_arg, equal_arg;
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')