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

src/collect-io.c

index a58ac7fab50ef608a2df698417611047b5dbe740..3c0d02c8792cff94f5cb878c113282b0a79ac050 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;
                }