commit 349cf4d9fff3c30c07e473d86bb7573e4d6c7fa3
parent 6a2249c88d8fcb69750199058ccf729bea95bf2d
Author: Tom Lebreux <me@tomlebreux.com>
Date: Mon, 30 May 2022 17:51:30 -0400
net::uri: Fix missing fmt::printf arguments
Signed-off-by: Tom Lebreux <me@tomlebreux.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/uri/fmt.ha b/net/uri/fmt.ha
@@ -33,7 +33,7 @@ export fn fmt(out: io::handle, u: *const uri) (size | io::error) = {
n += ip::fmt(out, addr)?;
};
if (u.port != 0) {
- n += fmt::fprintf(out, ":{}")?;
+ n += fmt::fprintf(out, ":{}", u.port)?;
};
n += fmt::fprint(out, u.path)?;
if (len(u.query) > 0) {