From 1609393d8e232a4c94b0d8345701db44446eeeb7 Mon Sep 17 00:00:00 2001 From: Matthew McGowan Date: Fri, 8 Sep 2023 01:18:51 -0700 Subject: [PATCH] fix: NoteBinaryMaxEncodedLength wasn't adding the transport framing overhead. --- n_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/n_helpers.c b/n_helpers.c index 07d14bd5..5bcb061e 100644 --- a/n_helpers.c +++ b/n_helpers.c @@ -337,7 +337,7 @@ uint32_t NoteBinaryMaxDecodedLength(uint32_t bufferSize) /**************************************************************************/ uint32_t NoteBinaryMaxEncodedLength(uint32_t unencodedLength) { - return cobsEncodedMaxLength(unencodedLength); + return cobsEncodedMaxLength(unencodedLength)+1; } //**************************************************************************/