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

Use g_build_filename isntead

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <>
parent 0890d1bb
......@@ -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) {
char* basename = g_path_get_basename(zathura_document_get_path(zathura->document));
char* tmp = file_path;
file_path = g_strconcat(file_path, "/", basename, NULL);
file_path = g_build_filename(file_path, basename, NULL);
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