Skip to content

Commit

Permalink
fix: NoteBinaryMaxEncodedLength wasn't adding the transport framing o…
Browse files Browse the repository at this point in the history
…verhead.
  • Loading branch information
m-mcgowan committed Sep 8, 2023
1 parent b0aae6d commit 1609393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion n_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ uint32_t NoteBinaryMaxDecodedLength(uint32_t bufferSize)
/**************************************************************************/
uint32_t NoteBinaryMaxEncodedLength(uint32_t unencodedLength)
{
return cobsEncodedMaxLength(unencodedLength);
return cobsEncodedMaxLength(unencodedLength)+1;
}

//**************************************************************************/
Expand Down

0 comments on commit 1609393

Please sign in to comment.