Fix #578: unable to write orientation to file
authorColin Clark <colin.clark@cclark.uk>
Wed, 17 Jan 2018 16:42:48 +0000 (16:42 +0000)
committerColin Clark <colin.clark@cclark.uk>
Wed, 17 Jan 2018 16:42:48 +0000 (16:42 +0000)
https://github.com/BestImageViewer/geeqie/issues/578

Path/filename was not protected with quotes

src/layout_util.c

index 0e3b01c..f91a1f2 100644 (file)
@@ -510,8 +510,7 @@ static void layout_menu_write_rotate(GtkToggleAction *action, gpointer data, gbo
 
                rotation = g_strdup_printf("%d", fd_n->user_orientation);
                command = g_strconcat(GQ_BIN_DIR, "/geeqie-rotate -r ", rotation,
-                                                                                                       keep_date ? " -t " : " ", fd_n->path, NULL);
-
+                                                               keep_date ? " -t \"" : " \"", fd_n->path, "\"", NULL);
                run_result = WEXITSTATUS(runcmd(command));
                if (!run_result)
                        {