diff src/view_file_list.c @ 726:a1dcef8cd1ae

Use G_DIR_SEPARATOR where applicable.
author zas_
date Wed, 21 May 2008 11:07:23 +0000
parents e07895754e65
children a7289f9e8d29
line wrap: on
line diff
--- a/src/view_file_list.c	Wed May 21 11:00:13 2008 +0000
+++ b/src/view_file_list.c	Wed May 21 11:07:23 2008 +0000
@@ -384,7 +384,7 @@
 	old_path = g_build_filename(vf->path, old, NULL);
 	new_path = g_build_filename(vf->path, new, NULL);
 
-	if (strchr(new, '/') != NULL)
+	if (strchr(new, G_DIR_SEPARATOR) != NULL)
 		{
 		gchar *text = g_strdup_printf(_("Invalid file name:\n%s"), new);
 		file_util_warning_dialog(_("Error renaming file"), text, GTK_STOCK_DIALOG_ERROR, vf->listview);