summaryrefslogtreecommitdiff
path: root/news/newsfetch/patches/patch-ac
blob: 37f6380aa8a99a66a83cf3feeae142a12547ca35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$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);