changeset 19378:70a3aa1f2dd5

Fix #2599. (Sound File Change Crash)
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 23 Aug 2007 18:00:56 +0000
parents 40c3e3857458
children 129229cea28f
files finch/libgnt/gntfilesel.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntfilesel.c	Thu Aug 23 07:24:54 2007 +0000
+++ b/finch/libgnt/gntfilesel.c	Thu Aug 23 18:00:56 2007 +0000
@@ -200,7 +200,7 @@
 	const char *tmp;
 	tmp = sel->suggest ? sel->suggest :
 		(const char*)gnt_tree_get_selection_data(sel->dirsonly ? GNT_TREE(sel->dirs) : GNT_TREE(sel->files));
-	old = g_strdup_printf("%s%s%s", sel->current, sel->current[1] ? G_DIR_SEPARATOR_S : "", tmp ? tmp : "");
+	old = g_strdup_printf("%s%s%s", SAFE(sel->current), SAFE(sel->current)[1] ? G_DIR_SEPARATOR_S : "", tmp ? tmp : "");
 	gnt_entry_set_text(GNT_ENTRY(sel->location), old);
 	g_free(old);
 }