nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit c4d8fc63a9a367643dc080bd3f3fac89c3640c4e
parent b21ddbd6510eab4b0bae6f81be0f3d7aa2225168
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 28 Dec 2023 14:46:17 -0800

bech32: fix big in bech32 size parsing

Diffstat:
Msrc/content_parser.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/content_parser.c b/src/content_parser.c @@ -495,7 +495,7 @@ static int parse_mention_bech32(struct cursor *cur, struct ndb_block *block) { return 0; } - block->block.str.len = cur->p - start; + block->block.str.len = cur->p - (unsigned char*)block->block.str.str; block->type = BLOCK_MENTION_BECH32; return 1;