From e8fa9487409b35206e93eac2e65ea13d2c1fa197 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Mon, 1 Mar 2021 17:34:04 -0600 Subject: [PATCH] asn1: Minor JSON fix --- lib/asn1/template.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/asn1/template.c b/lib/asn1/template.c index fe6c4f1dd..91f334e0c 100644 --- a/lib/asn1/template.c +++ b/lib/asn1/template.c @@ -2488,7 +2488,7 @@ _asn1_print(const struct asn1_template *t, s = (f->print)(el, 0); if (s == NULL || - rk_strasvis(&s2, s, VIS_TAB|VIS_NL|VIS_DQ, "") == -1) { + rk_strasvis(&s2, s, VIS_CSTYLE|VIS_TAB|VIS_NL|VIS_DQ, "") == -1) { rk_strpoolfree(r); free(indents); free(s); @@ -2524,7 +2524,7 @@ _asn1_print(const struct asn1_template *t, char *s2 = NULL; if (s) - (void) rk_strasvis(&s2, s, VIS_TAB|VIS_NL|VIS_DQ, ""); + (void) rk_strasvis(&s2, s, VIS_CSTYLE|VIS_TAB|VIS_NL|VIS_DQ, ""); free(s); s = s2; if (s)