From: Colin Clark Date: Wed, 25 Oct 2017 18:11:40 +0000 (+0100) Subject: Fix #196: Geeqie crashes when renaming some images inside a collection X-Git-Tag: v1.4~50 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=bc543c3082d6b6bdd48fc9c0b7774be33fbfbd67 Fix #196: Geeqie crashes when renaming some images inside a collection https://github.com/BestImageViewer/geeqie/issues/196 --- diff --git a/src/collect-io.c b/src/collect-io.c index a58ac7fa..3c0d02c8 100644 --- a/src/collect-io.c +++ b/src/collect-io.c @@ -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; }