[easytag] Fix a crash when renaming directories



commit 0c0f46b9232b4e02ece2ac1872eeb10609e150ee
Author: David King <amigadave amigadave com>
Date:   Thu Feb 18 16:48:51 2016 +0000

    Fix a crash when renaming directories
    
    Pass a gchar *, not a gchar, to g_strconcat().
    
    
https://retrace.fedoraproject.org/faf/problems/bthash/?bth=5c2ad6c23b746b3d63a4ccc895e6f228e24293e5&bth=ce2762c57443a7c42472884bd3c9fcbef3755982
    https://retrace.fedoraproject.org/faf/problems/bthash/?bth=e5ff843b726a5ae24324a402c656c3da412adf05

 src/browser.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/browser.c b/src/browser.c
index 4204aa0..37c7d38 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -3317,7 +3317,7 @@ Browser_Tree_Handle_Rename (EtBrowser *self,
 
         /* Graft the new path onto the old path. */
         path_shift = strlen (old_path);
-        path_new = g_strconcat (new_path, path[path_shift], NULL);
+        path_new = g_strconcat (new_path, path + path_shift, NULL);
 
         gtk_tree_store_set(priv->directory_model, &iter,
                            TREE_COLUMN_FULL_PATH, path_new, -1);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]