pkgsrc/news/newsfetch/patches/patch-ac
2004-03-29 17:31:54 +00:00

19 lines
535 B
Text

$NetBSD: patch-ac,v 1.1 2004/03/29 17:31:55 tv Exp $
--- net.c.orig Mon Nov 3 08:47:33 2003
+++ net.c
@@ -104,12 +104,12 @@ int connect_server(char *server_name, in
void create_fd(int socketid, FILE ** sfp)
{
- if ((sfp[0] = fdopen(socketid, "w")) == NULL) {
+ if ((sfp[0] = fdopen(socketid, "wb")) == NULL) {
perror("fdopen");
close(socketid);
exit_now(1);
}
- if ((sfp[1] = fdopen(socketid, "r")) == NULL) {
+ if ((sfp[1] = fdopen(socketid, "rb")) == NULL) {
perror("fdopen");
close(socketid);
exit_now(1);