asn1: Fix OS X build

We can't use VIS_DQ on when the OS has a vis implementation but lacks
VIS_DQ.
This commit is contained in:
Nicolas Williams
2021-03-27 22:46:28 -05:00
parent eb2bd63207
commit 614b3a5914
3 changed files with 6 additions and 6 deletions

View File

@@ -592,7 +592,7 @@ defval(struct templatehead *temp, Member *m)
char *quoted;
if (rk_strasvis(&quoted, m->defval->u.stringvalue,
VIS_CSTYLE | VIS_DQ | VIS_NL, "") < 0)
VIS_CSTYLE | VIS_NL, "\"") < 0)
err(1, "Could not quote a string");
add_line(temp, "{ A1_OP_DEFVAL|A1_DV_UTF8STRING, ~0, (void *)\"%s\" }",
quoted);