summaryrefslogtreecommitdiff
path: root/std/path.zc
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-19 22:48:04 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-19 22:48:04 +0000
commit23065ddf6ed0b3762dda5f5059888eb52b5c2415 (patch)
treeaec187b8211203081e8dacb07a5ce325eb348cc4 /std/path.zc
parent3af5dcf34d705cc52c1ffe5b85c2a90b5104e4c9 (diff)
Fixes related to memory safety. I will work more on this related to the stdlib.
Diffstat (limited to 'std/path.zc')
-rw-r--r--std/path.zc4
1 files changed, 2 insertions, 2 deletions
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 };
}