librlp

C library for the Recursive Length Prefix (RLP) serialization format
git clone git://git.defalsify.org/librlp.git
Log | Files | Refs | LICENSE

commit 353941362bcbd0359a5ad538d467de99626a0d0d
parent c3be720692ce21d02445d5cb40e8438fc8202762
Author: nolash <dev@holbrook.no>
Date:   Tue, 15 Jun 2021 14:26:54 +0200

Manually revert false solution to problem

Diffstat:
Msrc/encode.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/encode.c b/src/encode.c @@ -22,6 +22,7 @@ int rlp_add(rlp_encoder_t *encoder, int len, const char *data) { if (len == 1 && v < 56) { *(encoder->ptr) = v; encoder->ptr++; + encoder->size++; } else { v = (char)*data; if (len < 56) {