Skip to content

Commit

Permalink
Use G_DIR_SEPARATOR_S instead of "/"
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel committed May 24, 2021
1 parent ac8eafb commit 209dd74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keyfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ static gboolean open_session_file(gchar **tmp, guint len, gchar *root_folder)
{
geany_debug("Relative path %s, root folder %s", locale_filename, root_folder);
gchar *absolute_path;
absolute_path = g_strconcat(root_folder, "/", locale_filename, NULL);
absolute_path = g_build_path(G_DIR_SEPARATOR_S, root_folder, locale_filename, NULL);
geany_debug("absolute_path : %s",absolute_path);
g_free(locale_filename);
locale_filename = absolute_path;
Expand Down

0 comments on commit 209dd74

Please sign in to comment.