nostrdb/bech32: fix big in bech32 size parsing
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
034f2cc02f
commit
4cfe28d802
@@ -495,7 +495,7 @@ static int parse_mention_bech32(struct cursor *cur, struct ndb_block *block) {
|
|||||||
return 0;
|
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;
|
block->type = BLOCK_MENTION_BECH32;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user