hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit e07ee31ce0c0a235e81757ba7c3cdeea2f4957c3
parent 3cffe29adb1fab6e4887a095fd2b48a086bb4d16
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 28 Mar 2021 14:10:42 -0400

net::ip::string: increase buffer size

Diffstat:
Mnet/ip/ip.ha | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/ip/ip.ha b/net/ip/ip.ha @@ -304,8 +304,8 @@ export fn fmt(s: *io::stream, item: (...addr | subnet)) (io::error | size) = { // allocated and will be overwritten on subsequent calls; see [strings::dup] to // extend its lifetime. export fn string(item: (...addr | subnet)) str = { - // Maximum length of an IPv6 address is 45 chars - static let buf: [46]u8 = [0...]; + // Maximum length of an IPv6 address plus its netmask in hexadecimal + static let buf: [64]u8 = [0...]; let stream = strio::fixed(buf); fmt(stream, item) as size; return strio::string(stream);