diff options
author | Alexander Larsson <alexl@redhat.com> | 2012-02-03 15:05:03 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2012-02-03 15:05:43 +0100 |
commit | ac800fa8febe2370cab2de2e0f4ed5abb431e963 (patch) | |
tree | 126bc9e39df8b39ca3aabf6d6212deea8db98863 /gio/gresourcefile.c | |
parent | 260a9cc290c42f06af89db33306df7a990448ed9 (diff) | |
download | glib-ac800fa8febe2370cab2de2e0f4ed5abb431e963.tar.gz glib-ac800fa8febe2370cab2de2e0f4ed5abb431e963.tar.bz2 glib-ac800fa8febe2370cab2de2e0f4ed5abb431e963.zip |
Fix GResourceFile get_parent()
This was erronously losing the last char.
Diffstat (limited to 'gio/gresourcefile.c')
-rw-r--r-- | gio/gresourcefile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gresourcefile.c b/gio/gresourcefile.c index 3a2747441..20b6c64d5 100644 --- a/gio/gresourcefile.c +++ b/gio/gresourcefile.c @@ -289,7 +289,7 @@ g_resource_file_get_parent (GFile *file) parent = g_object_new (G_TYPE_RESOURCE_FILE, NULL); parent->path = g_strndup (resource->path, - end - resource->path - 1); + end - resource->path); return G_FILE (parent); } |