pidgin/pidgin

Some fixes
xdg-dirs
2017-10-08, qarkai
73b49f76016a
Parents ea7c40572374
Children 6239177ce7ed
Some fixes
--- a/libpurple/core.h Fri Jun 30 17:31:16 2017 +0300
+++ b/libpurple/core.h Sun Oct 08 20:31:38 2017 +0300
@@ -232,7 +232,7 @@
* Migrates from legacy directory for libpurple to location following
* XDG base dir spec. https://developer.pidgin.im/ticket/10029
* NOTE This is not finished yet. Need to decide where other profile files
- * should be moved.
+ * should be moved. Search for usages of purple_user_dir().
*
* Returns: TRUE if migrated successfully, FALSE otherwise. On failure,
* the application must display an error to the user and then exit.
--- a/libpurple/util.c Fri Jun 30 17:31:16 2017 +0300
+++ b/libpurple/util.c Sun Oct 08 20:31:38 2017 +0300
@@ -3050,7 +3050,7 @@
}
}
- filename_full = g_strdup_printf("%s" G_DIR_SEPARATOR_S "%s", dir, filename);
+ filename_full = g_build_filename(dir, filename, NULL);
ret = purple_util_write_data_to_file_absolute(filename_full, data, size);