Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion port.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ macaroon_secretbox_open(const unsigned char* enc_key,
void
macaroon_bin2hex(const unsigned char* bin, size_t bin_sz, char* hex)
{
void* ptr = sodium_bin2hex(hex, bin_sz * 2, bin, bin_sz);
void* ptr = sodium_bin2hex(hex, bin_sz * 2 + 1, bin, bin_sz);
assert(ptr == hex);
}

Expand Down