mirror of
https://github.com/akheron/jansson.git
synced 2025-04-05 05:25:04 +00:00
json_dump_file: Open the output file in wb mode
For maximum compatibility.
This commit is contained in:
parent
9c6cb42f17
commit
32cd821273
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue