nostrdb/bech32: fix big in bech32 size parsing

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2023-12-28 14:46:17 -08:00
committed by Daniel D’Aquino
parent 034f2cc02f
commit 4cfe28d802

View File

@@ -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;