From 4ccc4cdbc27f5f375b8056519f18e98a6e25c2a9 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Thu, 29 Jul 2021 04:59:39 -0700 Subject: [PATCH] cmd/sum- use std.fs.path.join for path joins --- src/util/module.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/module.zig b/src/util/module.zig index 943b8a7ebc48e63fee181a521f484e6765a88324..2d6d3f574117cb7ddae41e8a9295cf3b7c9e1722 100644 --- a/src/util/module.zig +++ b/src/util/module.zig @@ -76,7 +76,7 @@ pub const Module = struct { const h = &std.crypto.hash.Blake3.init(.{}); for (file_list_2.items) |item| { - const abs_path = try u.concat(&.{ cdpath, "/", self.clean_path, "/", item }); + const abs_path = try std.fs.path.join(gpa, &.{ cdpath, self.clean_path, item }); const file = try std.fs.cwd().openFile(abs_path, .{}); defer file.close(); const input = try file.reader().readAllAlloc(gpa, u.mb * 100); -- 2.54.0