diff options
Diffstat (limited to 'src/plist.c')
| -rw-r--r-- | src/plist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plist.c b/src/plist.c index 7697a75..a6d3547 100644 --- a/src/plist.c +++ b/src/plist.c @@ -2404,7 +2404,7 @@ plist_err_t plist_write_to_string(plist_t plist, char **output, uint32_t* length err = plist_to_xml(plist, output, length); break; case PLIST_FORMAT_JSON: - err = plist_to_json(plist, output, length, ((options & PLIST_OPT_COMPACT) == 0)); + err = plist_to_json_with_options(plist, output, length, options); break; case PLIST_FORMAT_OSTEP: err = plist_to_openstep(plist, output, length, ((options & PLIST_OPT_COMPACT) == 0)); @@ -2442,7 +2442,7 @@ plist_err_t plist_write_to_stream(plist_t plist, FILE *stream, plist_format_t fo err = plist_to_xml(plist, &output, &length); break; case PLIST_FORMAT_JSON: - err = plist_to_json(plist, &output, &length, ((options & PLIST_OPT_COMPACT) == 0)); + err = plist_to_json_with_options(plist, &output, &length, options); break; case PLIST_FORMAT_OSTEP: err = plist_to_openstep(plist, &output, &length, ((options & PLIST_OPT_COMPACT) == 0)); |
