Fix #196: Geeqie crashes when renaming some images inside a collection
[geeqie.git] / 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;
                }