summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/os
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2010-11-08 17:23:32 +0100
committerMichal Krol <michal@vmware.com>2010-11-08 17:24:11 +0100
commit9e7132b52debd3d592391ce89d3582027cb0e161 (patch)
treeb13b2cc576dffe924878c9482266ebd27cf12cb1 /src/gallium/auxiliary/os
parent962967d080a1859bafc843ebdf374bcdfcff9271 (diff)
os: Open file streams in binary mode.
Otherwise we'll get garbled data on Windows.
Diffstat (limited to 'src/gallium/auxiliary/os')
-rw-r--r--src/gallium/auxiliary/os/os_stream_stdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/os/os_stream_stdc.c b/src/gallium/auxiliary/os/os_stream_stdc.c
index 37e7d063e2..afd3ff6dce 100644
--- a/src/gallium/auxiliary/os/os_stream_stdc.c
+++ b/src/gallium/auxiliary/os/os_stream_stdc.c
@@ -106,7 +106,7 @@ os_file_stream_create(const char *filename)
stream->base.flush = &os_stdc_stream_flush;
stream->base.vprintf = &os_stdc_stream_vprintf;
- stream->file = fopen(filename, "w");
+ stream->file = fopen(filename, "wb");
if(!stream->file)
goto no_file;