From 2b26072c8f853e08c30dae3053b9377d9066d66e Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 19 Mar 2004 00:38:35 +0000 Subject: [PATCH] open output file in binary mode --- tools/bsp2img/bsp2img.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/bsp2img/bsp2img.c b/tools/bsp2img/bsp2img.c index e3e901464..3c11c2397 100644 --- a/tools/bsp2img/bsp2img.c +++ b/tools/bsp2img/bsp2img.c @@ -904,7 +904,7 @@ main (int argc, char *argv[]) /* Write image */ - outfile = Qopen (options.outf_name, "w"); + outfile = Qopen (options.outf_name, "wb"); if (outfile == NULL) { fprintf (stderr, "Error opening output file %s.\n", options.outf_name);