Fix #196: Geeqie crashes when renaming some images inside a collection
authorColin Clark <colin.clark@cclark.uk>
Wed, 25 Oct 2017 18:11:40 +0000 (19:11 +0100)
committerColin Clark <colin.clark@cclark.uk>
Wed, 25 Oct 2017 18:11:40 +0000 (19:11 +0100)
https://github.com/BestImageViewer/geeqie/issues/196

src/collect-io.c

index a58ac7f..3c0d02c 100644 (file)
@@ -674,9 +674,7 @@ static gboolean collect_manager_process_action(CollectManagerEntry *entry, gchar
 
        if (action)
                {
-               g_free(path);
-               path = g_strdup(action->newpath);
-               *path_ptr = path;
+               strcpy(*path_ptr, action->newpath);
                return TRUE;
                }