json_dump_file: Open the output file in wb mode
For maximum compatibility.
This commit is contained in:
parent
9c6cb42f17
commit
32cd821273
@ -425,7 +425,7 @@ int json_dump_file(const json_t *json, const char *path, size_t flags)
|
|||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
FILE *output = fopen(path, "w");
|
FILE *output = fopen(path, "wb");
|
||||||
if(!output)
|
if(!output)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user