cc11cc1e1e
Needed for Cygwin et al.
19 lines
535 B
Text
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);
|