From dd81ae76ec9da2bfc02bf0ab9d088348eda60e30 Mon Sep 17 00:00:00 2001 From: kayomn Date: Tue, 1 Nov 2022 22:22:29 +0000 Subject: [PATCH] Fix formatting of system-level code in Ona module --- src/ona/sys.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ona/sys.zig b/src/ona/sys.zig index 27bbae2..38422fe 100644 --- a/src/ona/sys.zig +++ b/src/ona/sys.zig @@ -378,12 +378,14 @@ pub const Path = extern struct { while (components.next()) |component| if (component.len != 0) { for (component) |byte| { if (path.length == max) return error.TooLong; + path.buffer[path.length] = byte; path.length += 1; } if (components.hasNext()) { if (path.length == max) return error.TooLong; + path.buffer[path.length] = '/'; path.length += 1; }