application/window.c

changeset 118
6d0da97105d8
parent 117
b174e721663e
--- a/application/window.c	Sat Dec 27 22:47:56 2025 +0100
+++ b/application/window.c	Thu Jan 08 18:06:04 2026 +0100
@@ -408,7 +408,7 @@
 
 
     cxmutstr base = cx_strdup(cx_strn(full_path, end));
-    cxmutstr base_path = cx_strcat(2, cx_strcast(base), cx_str("/"));
+    cxmutstr base_path = cx_strcat(CX_NULLSTR, 2, base, cx_str("/"));
     cxstring path = cx_strsubs(fpath, end + skip);
     
     cxstring trail = cx_str(len > 0 && full_path[len-1] == '/' ? "/" : "");
@@ -448,7 +448,7 @@
         elms[j].name_len = m.length;
 
         size_t elm_path_len = c.ptr + c.length - full_path;
-        cxmutstr elm_path = cx_strcat(2, cx_strn(full_path, elm_path_len), i+1 < nelm ? cx_str("/") : trail);
+        cxmutstr elm_path = cx_strcat(CX_NULLSTR, 2, cx_strn(full_path, elm_path_len), i+1 < nelm ? cx_str("/") : trail);
         elms[j].path = elm_path.ptr;
         elms[j].path_len = elm_path.length;
 

mercurial