Commit 17f0e740 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Use g_build_filename isntead

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 0890d1bb
...@@ -1152,7 +1152,7 @@ document_save(zathura_t* zathura, const char* path, bool overwrite) ...@@ -1152,7 +1152,7 @@ document_save(zathura_t* zathura, const char* path, bool overwrite)
if (g_file_test(file_path, G_FILE_TEST_IS_DIR) == TRUE) { if (g_file_test(file_path, G_FILE_TEST_IS_DIR) == TRUE) {
char* basename = g_path_get_basename(zathura_document_get_path(zathura->document)); char* basename = g_path_get_basename(zathura_document_get_path(zathura->document));
char* tmp = file_path; char* tmp = file_path;
file_path = g_strconcat(file_path, "/", basename, NULL); file_path = g_build_filename(file_path, basename, NULL);
g_free(tmp); g_free(tmp);
g_free(basename); g_free(basename);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment