# HG changeset patch # User qarkai # Date 1507483898 -10800 # Node ID 73b49f76016a4c2573cf098e4ce128c6b5152ce7 # Parent ea7c40572374feefa30e18f5b149202ec93a126b Some fixes diff -r ea7c40572374 -r 73b49f76016a libpurple/core.h --- 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. diff -r ea7c40572374 -r 73b49f76016a libpurple/util.c --- 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);