$NetBSD$

--- 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);
