diff options
author | Shawn Willden <swillden@google.com> | 2020-11-20 00:35:10 -0700 |
---|---|---|
committer | Shawn Willden <swillden@google.com> | 2020-11-24 06:26:21 -0700 |
commit | 0f9cd2d79d08df69f966b8a10bd54e691a42fa6d (patch) | |
tree | 7777f7986a48bda395648a7140d4d61bddfeb379 /src/cppbor_parse.cpp | |
parent | 6ad5732fa5b77400a5682a5965e098849d91468d (diff) | |
download | libcppbor-0f9cd2d79d08df69f966b8a10bd54e691a42fa6d.tar.gz |
Improvements to cppbor
1. Add pretty-printing (moved from IdentityCredentialSupport)
2. Add EncodedItem to make it easy to add already-encoded CBOR.
3. Add Map canonicalization.
4. Add support for adding enums as integers.
Test: cppbor_test_external
Change-Id: I641c87567a11de4641b2fcadebe72dd832fceb51
Diffstat (limited to 'src/cppbor_parse.cpp')
-rw-r--r-- | src/cppbor_parse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cppbor_parse.cpp b/src/cppbor_parse.cpp index 4715152..357b9ee 100644 --- a/src/cppbor_parse.cpp +++ b/src/cppbor_parse.cpp @@ -32,7 +32,7 @@ namespace { std::string insufficientLengthString(size_t bytesNeeded, size_t bytesAvail, const std::string& type) { char buf[1024]; - snprintf(buf, sizeof(buf), "Need %zu byte(s) for %s, have %zu", bytesNeeded, type.c_str(), + snprintf(buf, sizeof(buf), "Need %zu byte(s) for %s, have %zu.", bytesNeeded, type.c_str(), bytesAvail); return std::string(buf); } |