changeset 19379:129229cea28f

merge of '46c81ad1c3775e997c564d591942cfe7916ebea7' and 'f289ca4b63a9c77ce000a84beb42dbfda2d06b0f'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 23 Aug 2007 18:02:43 +0000
parents 70a3aa1f2dd5 (diff) d3f2492a7768 (current diff)
children e28db9ae02b3
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntfilesel.c	Thu Aug 23 16:23:39 2007 +0000
+++ b/finch/libgnt/gntfilesel.c	Thu Aug 23 18:02:43 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);
 }