changeset 2640:5978ed05163b

Fix #196: Geeqie crashes when renaming some images inside a collection https://github.com/BestImageViewer/geeqie/issues/196
author Colin Clark <colin.clark@cclark.uk>
date Wed, 25 Oct 2017 19:11:40 +0100
parents 18460ea0ceef
children e82e3a793416
files src/collect-io.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/collect-io.c	Sun Oct 22 19:39:44 2017 +0100
+++ b/src/collect-io.c	Wed Oct 25 19:11:40 2017 +0100
@@ -674,9 +674,7 @@
 
 	if (action)
 		{
-		g_free(path);
-		path = g_strdup(action->newpath);
-		*path_ptr = path;
+		strcpy(*path_ptr, action->newpath);
 		return TRUE;
 		}