diff options
author | Tor Lillqvist <tml@iki.fi> | 2004-03-21 22:06:37 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2004-03-21 22:06:37 +0000 |
commit | 46b3a1174d425575ad08611db4d5d5f3d0da40d9 (patch) | |
tree | 3743fb3970a6806bc52b76d676fc9e700fe305f7 /gtk/gtkfilesystemwin32.c | |
parent | 34afac379269d68bcc85e3b44283bf44beb132b5 (diff) | |
download | gtk+-46b3a1174d425575ad08611db4d5d5f3d0da40d9.tar.gz |
Include the backslash. Otherwise gtk_file_system_win32_path_to_uri()
2004-03-21 Tor Lillqvist <tml@iki.fi>
* gtk/gtkfilesystemwin32.c
(gtk_file_system_win32_volume_get_base_path): Include the
backslash. Otherwise gtk_file_system_win32_path_to_uri() returns
NULL for a volume base path, as g_filename_to_uri() requires an
absolute path, and just a drive letter and colon isn't. (#137543)
Diffstat (limited to 'gtk/gtkfilesystemwin32.c')
-rw-r--r-- | gtk/gtkfilesystemwin32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkfilesystemwin32.c b/gtk/gtkfilesystemwin32.c index 8688e21b5e..350823db6c 100644 --- a/gtk/gtkfilesystemwin32.c +++ b/gtk/gtkfilesystemwin32.c @@ -396,7 +396,7 @@ static GtkFilePath * gtk_file_system_win32_volume_get_base_path (GtkFileSystem *file_system, GtkFileSystemVolume *volume) { - return (GtkFilePath *) g_strndup (volume->drive, 2); + return (GtkFilePath *) g_strdup (volume->drive); } static gboolean |