From 91602d739c67d3efbdc3cb06de86f2084b7d5c50 Mon Sep 17 00:00:00 2001 From: Fabien MARTY Date: Fri, 3 Jan 2020 09:53:43 +0100 Subject: [PATCH] fix: misuse of the g_build_path function --- src/log_proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log_proxy.c b/src/log_proxy.c index 69d7a42..76de78d 100644 --- a/src/log_proxy.c +++ b/src/log_proxy.c @@ -47,7 +47,7 @@ void clean_too_old_files() { continue; } if (g_str_has_prefix(name, basename)) { - gchar *filepath = g_build_path(dirpath, name, NULL); + gchar *filepath = g_strdup_printf("%s/%s", dirpath, name); list = g_list_insert_sorted(list, filepath, (GCompareFunc) _list_compare); }