changed sock_read() in some files to sock_gets().
[claws.git] / src / nntp.c
index 1bf5931979c39b922632c519f09249e22f25a7c4..0fa9332a1fa6324c99968aabc652424049c059df 100644 (file)
@@ -289,7 +289,7 @@ static void nntp_gen_send(NNTPSockInfo *sock, const gchar *format, ...)
 
 static gint nntp_gen_recv(NNTPSockInfo *sock, gchar *buf, gint size)
 {
 
 static gint nntp_gen_recv(NNTPSockInfo *sock, gchar *buf, gint size)
 {
-       if (sock_read(sock->sock, buf, size) == -1)
+       if (sock_gets(sock->sock, buf, size) == -1)
                return NN_SOCKET;
 
        strretchomp(buf);
                return NN_SOCKET;
 
        strretchomp(buf);