Skip to content

Commit

Permalink
[chip-tool] remove extra blank line in cert print
Browse files Browse the repository at this point in the history
  • Loading branch information
chshu committed Feb 20, 2023
1 parent 04adc52 commit 3bf0a3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const char * ToCertificate(const chip::ByteSpan & source, chip::MutableCharSpan
return destination.data();
}

size_t base64DataLen = BASE64_ENCODED_LEN(source.size()) + 1;
size_t base64DataLen = BASE64_ENCODED_LEN(source.size());
if (base64DataLen + strlen(header) + strlen(footer) > destination.size())
{
ChipLogError(DataManagement, "The certificate buffer is too small to hold the base64 encoded certificate");
Expand Down

0 comments on commit 3bf0a3c

Please sign in to comment.