From: Karel Zak Date: Thu, 12 Nov 2020 10:38:55 +0000 (+0100) Subject: lib/jsonwrt: use proper output function X-Git-Tag: v2.37-rc1~383 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e434cf2cdb2b9b776726be66b1315e54d94682cd;p=thirdparty%2Futil-linux.git lib/jsonwrt: use proper output function Signed-off-by: Karel Zak --- diff --git a/lib/jsonwrt.c b/lib/jsonwrt.c index 6d559dd71e..00e8b9d251 100644 --- a/lib/jsonwrt.c +++ b/lib/jsonwrt.c @@ -35,7 +35,7 @@ void ul_jsonwrt_open(struct ul_jsonwrt *fmt, const char *name, int type) else { ul_jsonwrt_indent(fmt); if (name) - fputs_quoted(name, fmt->out); + fputs_quoted_json_lower(name, fmt->out); } switch (type) { @@ -104,7 +104,7 @@ void ul_jsonwrt_value_s(struct ul_jsonwrt *fmt, { ul_jsonwrt_value_open(fmt, name); if (data && *data) - fputs_quoted(data, fmt->out); + fputs_quoted_json(data, fmt->out); else fputs("null", fmt->out); ul_jsonwrt_value_close(fmt, islast);