Fix fopen call to use mode "wb" so it works on Win32.

This commit is contained in:
Erik de Castro Lopo 2004-03-12 21:37:13 +00:00
parent 1c3fa60db9
commit 227a966990

View File

@ -103,7 +103,7 @@ static void
dump_data_to_file (const char *filename, void *data, unsigned int datalen)
{ FILE *file ;
if ((file = fopen (filename, "w")) == NULL)
if ((file = fopen (filename, "wb")) == NULL)
{ printf ("\n\nLine %d : could not open file : %s\n\n", __LINE__, filename) ;
exit (1) ;
} ;