aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2026-01-28 17:26:19 +0000
committergingerBill <gingerBill@users.noreply.github.com>2026-01-28 17:26:19 +0000
commitf2b0f63b811584b2a79a47943bc1299172723d85 (patch)
treeabd371321670c64a9872b76db22f40e3cbe285cd
parent37c2f6882419c8811d9fc9238873668b82a40a04 (diff)
Use clean paths to calculate volumes
-rw-r--r--core/path/filepath/path.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/path/filepath/path.odin b/core/path/filepath/path.odin
index d5ba76342..dbad98fa1 100644
--- a/core/path/filepath/path.odin
+++ b/core/path/filepath/path.odin
@@ -399,8 +399,8 @@ rel :: proc(base_path, target_path: string, allocator := context.allocator) -> (
return strings.clone(".", allocator), .None
}
- base_vol := volume_name(base_path)
- target_vol := volume_name(target_path)
+ base_vol := volume_name(base_clean)
+ target_vol := volume_name(target_clean)
base := base_clean [len(base_vol):]
target := target_clean[len(target_vol):]
if base == "." {