summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2013-02-05 04:19:59 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2013-02-05 04:36:57 (GMT)
commitf9a1b6b1bed0580e24238fa842d833be91264448 (patch)
tree9db81876649dd35478c084d8bb10c585ab721113
parent8f26e6d5bb7fec582624a38d435b547585699e5b (diff)
downloadgrv-f9a1b6b1bed0580e24238fa842d833be91264448.zip
grv-f9a1b6b1bed0580e24238fa842d833be91264448.tar.gz
grv-f9a1b6b1bed0580e24238fa842d833be91264448.tar.bz2
grv-f9a1b6b1bed0580e24238fa842d833be91264448.tar.xz
sock_to_file: The proper type for fdopen() is "r" not "f"...
A bit of a facepalm...
-rw-r--r--netopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netopen.c b/netopen.c
index bec777d..31832c3 100644
--- a/netopen.c
+++ b/netopen.c
@@ -78,7 +78,7 @@ static FILE *sock_to_file(SOCKET sock, int is_write)
{
FILE *f;
- f = fdopen(sock, is_write ? "w" : "f");
+ f = fdopen(sock, is_write ? "w" : "r");
if (!f)
close(sock);