json_dump_file: Open the output file in wb mode

For maximum compatibility.
This commit is contained in:
Petri Lehtinen 2011-10-07 20:52:49 +03:00
parent 9c6cb42f17
commit 32cd821273

View File

@ -425,7 +425,7 @@ int json_dump_file(const json_t *json, const char *path, size_t flags)
{
int result;
FILE *output = fopen(path, "w");
FILE *output = fopen(path, "wb");
if(!output)
return -1;