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; } //**************************************************************************/