From 51eb9d19bd812a9bd48b67c8d0a29debc9a3974f Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 10 Dec 2007 11:19:41 +0000 Subject: [PATCH] Don't hardcode '/' (#502727) 2007-12-10 Alexander Larsson * gfile.c (g_file_set_display_name): Don't hardcode '/' (#502727) svn path=/trunk/; revision=6084 --- gio/ChangeLog | 5 +++++ gio/gfile.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gio/ChangeLog b/gio/ChangeLog index fee454d..9da8eaf 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,8 @@ +2007-12-10 Alexander Larsson + + * gfile.c (g_file_set_display_name): + Don't hardcode '/' (#502727) + 2007-12-09 Hans Breuer * makefile.msc : follow lib naming convention diff --git a/gio/gfile.c b/gio/gfile.c index f9a9cbc..27935e4 100644 --- a/gio/gfile.c +++ b/gio/gfile.c @@ -2318,12 +2318,12 @@ g_file_set_display_name (GFile *file, g_return_val_if_fail (G_IS_FILE (file), NULL); g_return_val_if_fail (display_name != NULL, NULL); - if (strchr (display_name, '/') != NULL) + if (strchr (display_name, G_DIR_SEPARATOR) != NULL) { g_set_error (error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT, - _("File names cannot contain '/'")); + _("File names cannot contain '%c'"), G_DIR_SEPARATOR); return NULL; } -- 2.7.4