string pretty-print improved

string got plain old C output format to avoid confusion e.g. "true" string with CBOR true value

Signed-off-by: phirsov <41143811+phirsov@users.noreply.github.com>
This commit is contained in:
Svyatoslav Phirsov
2020-02-09 17:52:42 +03:00
committed by phirsov
parent 8acb09f5b0
commit 1a43b45ed9
+1 -1
View File
@@ -87,7 +87,7 @@ static CborError dumprecursive(CborValue *it, int nestingLevel)
err = cbor_value_dup_text_string(it, &buf, &n, it);
if (err)
return err; // parse error
puts(buf);
printf("\"%s\"\n", buf);
free(buf);
continue;
}