From d82f2f293b056965fc0bed2b24820961885ab90b Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Fri, 1 Apr 2022 14:17:44 +0200 Subject: [PATCH] fix path where logs are stored 43e5f15e66b83ac8f3d57d2ffc7babf57873c51c broke the creation of the path where chatlogs are stored. This is fixed now. Signed-off-by: Steffen Jaeckel --- src/log.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/log.c b/src/log.c index 546f7804..428e1a10 100644 --- a/src/log.c +++ b/src/log.c @@ -679,8 +679,10 @@ _get_log_filename(const char* const other, const char* const login, GDateTime* d { gchar* chatlogs_dir = files_file_in_account_data_path(DIR_CHATLOGS, login, is_room ? "rooms" : NULL); gchar* logfile_name = g_date_time_format(dt, "%Y_%m_%d.log"); - gchar* logfile_path = files_file_in_account_data_path(chatlogs_dir, other, logfile_name); + gchar* other_ = str_replace(other, "@", "_at_"); + gchar* logfile_path = g_strdup_printf("%s/%s/%s", chatlogs_dir, other_, logfile_name); + g_free(other_); g_free(logfile_name); g_free(chatlogs_dir);