ui/common/properties.c

changeset 997
287b20e2a564
parent 994
c9395b30e5c8
--- a/ui/common/properties.c	Sat Dec 13 12:19:55 2025 +0100
+++ b/ui/common/properties.c	Sat Dec 13 12:37:41 2025 +0100
@@ -234,7 +234,7 @@
             // try creating the parent
             int err = ui_mkdir(parent);
             if(err) {
-                fprintf(stderr, "Error: Cannot create directory %s: %s\n", strerror(errno));
+                fprintf(stderr, "Error: Cannot create directory %s: %s\n", parent, strerror(errno));
                 free(parent);
                 free(dir);
                 return;
@@ -290,7 +290,7 @@
     int ret = 0;
     CxMapIterator i = cxMapIterator(application_properties);
     cx_foreach(CxMapEntry *, entry, i) {
-        fprintf(file, "%.*s = %s\n", (int)entry->key->len, entry->key->data, entry->value);
+        fprintf(file, "%.*s = %s\n", (int)entry->key->len, (char*)entry->key->data, (char*)entry->value);
     }
     
     cxMapRehash(application_properties);

mercurial