From 23065ddf6ed0b3762dda5f5059888eb52b5c2415 Mon Sep 17 00:00:00 2001 From: Zuhaitz Méndez Fernández de Aránguiz Date: Mon, 19 Jan 2026 22:48:04 +0000 Subject: Fixes related to memory safety. I will work more on this related to the stdlib. --- std/path.zc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/path.zc') diff --git a/std/path.zc b/std/path.zc index 6a9531d..7055880 100644 --- a/std/path.zc +++ b/std/path.zc @@ -33,12 +33,12 @@ impl Path { var last = self.str.vec.get(base_len - 1); if (last != '/' && last != '\\') { var sep = String::new("/"); - new_s.append(sep); + new_s.append(&sep); } } var other_str = String::new(other); - new_s.append(other_str); + new_s.append(&other_str); return Path { str: new_s }; } -- cgit v1.2.3