From: Alexander Larsson Date: Mon, 10 Dec 2007 11:19:41 +0000 (+0000) Subject: Don't hardcode '/' (#502727) X-Git-Tag: GLIB_2_15_1~171 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51eb9d19bd812a9bd48b67c8d0a29debc9a3974f;p=platform%2Fupstream%2Fglib.git 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 --- 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; }