Skip to content

Commit

Permalink
fix: misuse of the g_build_path function
Browse files Browse the repository at this point in the history
  • Loading branch information
thefab committed Jan 3, 2020
1 parent 6e40e71 commit 91602d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/log_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 91602d7

Please sign in to comment.