Skip to content

Commit f78a3a9

Browse files
jkauffman1Lawrence Nahum
authored andcommitted
Pass correct buffer size to wally_base58_to_bytes
1 parent ae1ca5c commit f78a3a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/elements.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ int wally_confidential_addr_from_addr(
435435

436436
/* Decode the passed address */
437437
ret = wally_base58_to_bytes(address, BASE58_FLAG_CHECKSUM,
438-
addr_bytes_p, 1 + HASH160_LEN + EC_PUBLIC_KEY_LEN, &written);
438+
addr_bytes_p, 1 + HASH160_LEN + BASE58_CHECKSUM_LEN, &written);
439439
if (ret == WALLY_OK) {
440440
if (written != HASH160_LEN + 1)
441441
ret = WALLY_EINVAL;

0 commit comments

Comments
 (0)