mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-01 11:18:09 -07:00
13 lines
396 B
Diff
13 lines
396 B
Diff
diff --git a/port.c b/port.c
|
|
index 4fef7fa..138682a 100644
|
|
--- a/port.c
|
|
+++ b/port.c
|
|
@@ -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);
|
|
}
|